minor #13090 [VarDumper] Minor fix for the uniformity (SofHad)

This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #13090).

Discussion
----------

[VarDumper] Minor fix for the uniformity

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | no
| License       | MIT
| Doc PR        | no

Commits
-------

7d02e48 [VarDumper] Minor fix for the uniformity
This commit is contained in:
Nicolas Grekas 2014-12-24 17:16:12 +01:00
commit bad5169f0d

View File

@ -69,28 +69,34 @@
}
</style>
<ul class="alt">
{% for dump in collector.getDumps('html') %}
<li class="sf-dump sf-reset">
in
{% if dump.line %}
{% set link = dump.file|file_link(dump.line) %}
{% if link %}
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
{% if collector.dumpsCount %}
<ul class="alt">
{% for dump in collector.getDumps('html') %}
<li class="sf-dump sf-reset">
in
{% if dump.line %}
{% set link = dump.file|file_link(dump.line) %}
{% if link %}
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
{% else %}
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
{% endif %}
{% else %}
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
{{ dump.name }}
{% endif %}
{% else %}
{{ dump.name }}
{% endif %}
line {{ dump.line }}:
<a onclick="Sfdump.toggle(this)">▶</a>
<span class="sf-dump-compact">
{% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
</span>
line {{ dump.line }}:
<a onclick="Sfdump.toggle(this)">▶</a>
<span class="sf-dump-compact">
{% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
</span>
{{ dump.data|raw }}
</li>
{% endfor %}
</ul>
{{ dump.data|raw }}
</li>
{% endfor %}
</ul>
{% else %}
<p>
<em>No dumped variable</em>
</p>
{% endif %}
{% endblock %}