|
1 | 1 | {% extends '@WebProfiler/Profiler/layout.html.twig' %} |
2 | 2 |
|
3 | 3 | {% block toolbar %} |
| 4 | + {% if collector.sentMessages|length > 0 %} |
| 5 | + {% set icon %} |
| 6 | + {{ include('@Enqueue/Icon/icon.svg') }} |
| 7 | + <span class="sf-toolbar-value"> |
| 8 | + {{ collector.sentMessages|length }}</span> |
| 9 | + {% endset %} |
| 10 | + |
| 11 | + {% set text %} |
| 12 | + <div class="sf-toolbar-info-piece"> |
| 13 | + <b>Sent messages</b> |
| 14 | + <span class="sf-toolbar-status">{{ collector.sentMessages|length }}</span> |
| 15 | + </div> |
| 16 | + {% endset %} |
| 17 | + |
| 18 | + {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true }) }} |
| 19 | + {% endif %} |
4 | 20 | {% endblock %} |
5 | 21 |
|
6 | 22 | {% block menu %} |
7 | 23 | <span class="label {{ not collector.sentMessages ? 'disabled' }}"> |
| 24 | + <span class="icon">{{ include('@Enqueue/Icon/icon.svg') }}</span> |
8 | 25 | <strong>Message Queue</strong> |
9 | 26 | </span> |
10 | 27 | {% endblock %} |
|
13 | 30 | <h2>Sent messages</h2> |
14 | 31 | <table> |
15 | 32 | <thead> |
16 | | - <tr> |
17 | | - <th>#</th> |
18 | | - <th>Topic</th> |
19 | | - <th>Message</th> |
20 | | - <th>Priority</th> |
21 | | - </tr> |
| 33 | + <tr> |
| 34 | + <th>#</th> |
| 35 | + <th>Topic</th> |
| 36 | + <th>Message</th> |
| 37 | + <th>Priority</th> |
| 38 | + </tr> |
22 | 39 | </thead> |
23 | 40 | <tbody> |
24 | | - {% for sentMessage in collector.sentMessages %} |
25 | | - <tr> |
26 | | - <td>{{ loop.index }}</td> |
27 | | - <td>{{ sentMessage.topic }}</td> |
28 | | - <td style="width: 70%"> |
| 41 | + {% for sentMessage in collector.sentMessages %} |
| 42 | + <tr> |
| 43 | + <td>{{ loop.index }}</td> |
| 44 | + <td>{{ sentMessage.topic }}</td> |
| 45 | + <td style="width: 70%"> |
29 | 46 | <span class="metadata"> |
30 | 47 | <span>{{ sentMessage.body[0:40] }}... </span><a class="btn btn-link text-small sf-toggle" data-toggle-selector="#message-body-{{ loop.index }}" data-toggle-alt-content="Hide trace">Show trace</a> |
31 | 48 |
|
32 | 49 | <div id="message-body-{{ loop.index }}" class="context sf-toggle-content sf-toggle-hidden"> |
33 | 50 | {{ profiler_dump(sentMessage.body) }} |
34 | 51 | </div> |
35 | 52 | </span> |
36 | | - <td><span title="{{ sentMessage.priority }}">{{ collector.prettyPrintPriority(sentMessage.priority) }}</span></td> |
37 | | - </tr> |
38 | | - {% endfor %} |
| 53 | + <td><span title="{{ sentMessage.priority }}">{{ collector.prettyPrintPriority(sentMessage.priority) }}</span></td> |
| 54 | + </tr> |
| 55 | + {% endfor %} |
39 | 56 | </tbody> |
40 | 57 |
|
41 | 58 | </table> |
|
0 commit comments