Skip to content

Commit 32fb93b

Browse files
committed
[DebugBundle] Removed unnecessary div in toolbar
1 parent ad5fb11 commit 32fb93b

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

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

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,27 @@
1010
{% endset %}
1111

1212
{% set text %}
13-
<div style="width: 450px; overflow: hidden;">
13+
<div class="sf-toolbar-info-piece">
14+
<b>dump()</b>
15+
</div>
16+
{% for dump in collector.getDumps('html') %}
1417
<div class="sf-toolbar-info-piece">
15-
<b>dump()</b>
16-
</div>
17-
{% for dump in collector.getDumps('html') %}
18-
<div class="sf-toolbar-info-piece">
19-
in
20-
{% if dump.file %}
21-
{% set link = dump.file|file_link(dump.line) %}
22-
{% if link %}
23-
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
24-
{% else %}
25-
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
26-
{% endif %}
18+
in
19+
{% if dump.file %}
20+
{% set link = dump.file|file_link(dump.line) %}
21+
{% if link %}
22+
<a href="{{ link }}" title="{{ dump.file }}">{{ dump.name }}</a>
2723
{% else %}
28-
{{ dump.name }}
24+
<abbr title="{{ dump.file }}">{{ dump.name }}</abbr>
2925
{% endif %}
30-
line {{ dump.line }}:
31-
{{ dump.data|raw }}
32-
</div>
33-
{% endfor %}
34-
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" onload="var h = this.parentNode.innerHTML, rx=/<script>(.*?)<\/script>/g, s; while (s = rx.exec(h)) {eval(s[1]);};" />
35-
</div>
26+
{% else %}
27+
{{ dump.name }}
28+
{% endif %}
29+
line {{ dump.line }}:
30+
{{ dump.data|raw }}
31+
</div>
32+
{% endfor %}
33+
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" onload="var h = this.parentNode.innerHTML, rx=/<script>(.*?)<\/script>/g, s; while (s = rx.exec(h)) {eval(s[1]);};" />
3634
{% endset %}
3735

3836
{% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': true } %}

0 commit comments

Comments
 (0)