10000 minor #13090 [VarDumper] Minor fix for the uniformity (SofHad) · symfony/symfony@bad5169 · GitHub
[go: up one dir, main page]

Skip to content

Commit bad5169

Browse files
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
2 parents b0d73f3 + 7d02e48 commit bad5169

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

src/Symfony/Bundle/DebugBundle/Resources/views/Profiler/dump.html.twig

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -69,28 +69,34 @@
6969
}
7070
</style>
7171

72-
<ul class="alt">
73-
{% for dump in collector.getDumps('html') %}
74-
<li class="sf-dump sf-reset">
75-
in
76-
{% if dump.line %}
77-
{% set link = dump.file|file_link(dump.line) %}
78-
{% if link %}
79-
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
72+
{% if collector.dumpsCount %}
73+
<ul class="alt">
74+
{% for dump in collector.getDumps('html') %}
75+
<li class="sf-dump sf-reset">
76+
in
77+
{% if dump.line %}
78+
{% set link = dump.file|file_link(dump.line) %}
79+
{% if link %}
80+
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
81+
{% else %}
82+
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
83+
{% endif %}
8084
{% else %}
81-
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
85+
{{ dump.name }}
8286
{% endif %}
83-
{% else %}
84-
{{ dump.name }}
85-
{% endif %}
86-
line {{ dump.line }}:
87-
<a onclick="Sfdump.toggle(this)">▶</a>
88-
<span class="sf-dump-compact">
89-
{% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
90-
</span>
87+
line {{ dump.line }}:
88+
<a onclick="Sfdump.toggle(this)">▶</a>
89+
<span class="sf-dump-compact">
90+
{% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
91+
</span>
9192

92-
{{ dump.data|raw }}
93-
</li>
94-
{% endfor %}
95-
</ul>
93+
{{ dump.data|raw }}
94+
</li>
95+
{% endfor %}
96+
</ul>
97+
{% else %}
98+
<p>
99+
<em>No dumped variable</em>
100+
</p>
101+
{% endif %}
96102
{% endblock %}

0 commit comments

Comments
 (0)
0