Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 146ae74

Browse files
committed
[Messenger] Fix DataCollector template
1 parent d4f4d8a commit 146ae74

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
{% endblock %}
3131

3232
{% block menu %}
33-
<span class="label{{ collector.exceptionsCount ? ' label-status-error' }}{{ collector.messages is empty ? ' disabled' }}">
34-
<span class="icon">{{ include('@WebProfiler/Icon/messenger.svg') }}</span>
35-
<strong>Messages</strong>
36-
{% if collector.exceptionsCount > 0 %}
37-
<span class="count">
38-
<span>{{ collector.exceptionsCount }}</span>
39-
</span>
40-
{% endif %}
41-
</span>
33+
<span class="label{{ collector.exceptionsCount ? ' label-status-error' }}{{ collector.messages is empty ? ' disabled' }}">
34+
<span class="icon">{{ include('@WebProfiler/Icon/messenger.svg') }}</span>
35+
<strong>Messages</strong>
36+
{% if collector.exceptionsCount > 0 %}
37+
<span class="count">
38+
<span>{{ collector.exceptionsCount }}</span>
39+
</span>
40+
{% endif %}
41+
</span>
4242
{% endblock %}
4343

4444
{% block head %}
@@ -71,31 +71,31 @@
7171
<p>No messages have been collected.</p>
7272
</div>
7373
{% else %}
74-
75-
<div class="sf-tabs message-bus">
76-
<div class="tab">
77-
{% set messages = collector.messages %}
78-
{% set exceptionsCount = collector.exceptionsCount %}
79-
<h3 class="tab-title">All<span class="badge {{ exceptionsCount ? exceptionsCount == messages|length ? 'status-error' : 'status-some-errors' }}">{{ messages|length }}</span></h3>
80-
81-
<div class="tab-content">
82-
<p class="text-muted">Ordered list of dispatched messages across all your buses</p>
83-
{{ helper.render_bus_messages(messages, true) }}
74+
<div class="sf-tabs message-bus">
75+
<div class="tab">
76+
{% set messages = collector.messages %}
77+
{% set exceptionsCount = collector.exceptionsCount %}
78+
<h3 class="tab-title">All<span class="badge {{ exceptionsCount ? exceptionsCount == messages|length ? 'status-error' : 'status-some-errors' }}">{{ messages|length }}</span></h3>
79+
80+
<div class="tab-content">
81+
<p class="text-muted">Ordered list of dispatched messages across all your buses</p>
82+
{{ helper.render_bus_messages(messages, true) }}
83+
</div>
8484
</div>
85-
</div>
8685

87-
{% for bus in collector.buses %}
88-
<div class="tab message-bus">
89-
{% set messages = collector.messages(bus) %}
90-
{% set exceptionsCount = collector.exceptionsCount(bus) %}
91-
<h3 class="tab-title">{{ bus }}<span class="badge {{ exceptionsCount ? exceptionsCount == messages|length ? 'status-error' : 'status-some-errors' }}">{{ messages|length }}</span></h3>
92-
93-
<div class="tab-content">
94-
<p class="text-muted">Ordered list of messages dispatched on the <code>{{ bus }}</code> bus</p>
95-
{{ helper.render_bus_messages(messages) }}
96-
</div>
86+
{% for bus in collector.buses %}
87+
<div class="tab message-bus">
88+
{% set messages = collector.messages(bus) %}
89+
{% set exceptionsCount = collector.exceptionsCount(bus) %}
90+
<h3 class="tab-title">{{ bus }}<span class="badge {{ exceptionsCount ? exceptionsCount == messages|length ? 'status-error' : 'status-some-errors' }}">{{ messages|length }}</span></h3>
91+
92+
<div class="tab-content">
93+
<p class="text-muted">Ordered list of messages dispatched on the <code>{{ bus }}</code> bus</p>
94+
{{ helper.render_bus_messages(messages) }}
95+
</div>
96+
</div>
97+
{% endfor %}
9798
</div>
98-
{% endfor %}
9999
{% endif %}
100100

101101
{% endblock %}
@@ -105,24 +105,24 @@
105105
{% for dispatchCall in messages %}
106106
<table class="message-item">
107107
<thead>
108-
<tr>
109-
<th colspan="2" class="sf-toggle"
110-
data-toggle-selector="#message-item-{{ discr }}-{{ loop.index0 }}-details"
111-
data-toggle-initial="{{ loop.first ? 'display' }}"
112-
>
113-
<span class="dump-inline">{{ profiler_dump(dispatchCall.message.type) }}</span>
114-
{% if showBus %}
115-
<span class="label">{{ dispatchCall.bus }}</span>
116-
{% endif %}
117-
{% if dispatchCall.exception is defined %}
118-
<span class="label status-error">exception</span>
119-
{% endif %}
120-
<a class="toggle-button">
121-
<span class="icon icon-close">{{ include('@Twig/images/icon-minus-square.svg') }}</span>
122-
<span class="icon icon-open">{{ include('@Twig/images/icon-plus-square.svg') }}</span>
123-
</a>
124-
</th>
125-
</tr>
108+
<tr>
109+
<th colspan="2" class="sf-toggle"
110+
data-toggle-selector="#message-item-{{ discr }}-{{ loop.index0 }}-details"
111+
data-toggle-initial="{{ loop.first ? 'display' }}"
112+
>
113+
<span class="dump-inline">{{ profiler_dump(dispatchCall.message.type) }}</span>
114+
{% if showBus %}
115+
<span class="label">{{ dispatchCall.bus }}</span>
116+
{% endif %}
117+
{% if dispatchCall.exception is defined %}
118+
<span class="label status-error">exception</span>
119+
{% endif %}
120+
<a class="toggle-button">
121+
<span class="icon icon-close">{{ include('@Twig/images/icon-minus-square.svg') }}</span>
122+
<span class="icon icon-open">{{ include('@Twig/images/icon-plus-square.svg') }}</span>
123+
</a>
124+
</th>
125+
</tr>
126126
</thead>
127127
<tbody id="message-item-{{ discr }}-{{ loop.index0 }}-details" class="sf-toggle-content">
128128
<tr>
@@ -133,7 +133,7 @@
133133
{% set link = caller.file|file_link(caller.line) %}
134134
{% if link %}
135135
<a href="{{ link }}" title="{{ caller.file }}">{{ caller.name }}</a>
136-
{% else %}
136+
{% else %}
137137
<abbr title="{{ caller.file }}">{{ caller.name }}</abbr>
138138
{% endif %}
139139
{% else %}
@@ -150,10 +150,10 @@
150150
</td>
151151
</tr>
152152
{% if showBus %}
153-
<tr>
154-
<td class="text-bold">Bus</td>
155-
<td>{{ dispatchCall.bus }}</td>
156-
</tr>
153+
<tr>
154+
<td class="text-bold">Bus</td>
155+
<td>{{ dispatchCall.bus }}</td>
156+
</tr>
157157
{% endif %}
158158
<tr>
159159
<td class="text-bold">Message</td>
@@ -170,12 +170,12 @@
170170
</td>
171171
</tr>
172172
{% if dispatchCall.exception is defined %}
173-
<tr>
174-
<td class="text-bold">Exception</td>
175-
<td>
176-
{{ profiler_dump(dispatchCall.exception.value, maxDepth=1) }}
177-
</td>
178-
</tr>
173+
<tr>
174+
<td class="text-bold">Exception</td>
175+
<td>
176+
{{ profiler_dump(dispatchCall.exception.value, maxDepth=1) }}
177+
</td>
178+
</tr>
179179
{% endif %}
180180
</tbody>
181181
</table>

0 commit comments

Comments
 (0)