From 146ae74fac1f928b143c206ca4c7e9b61a1e1cee Mon Sep 17 00:00:00 2001 From: Dimitri Gritsajuk Date: Tue, 5 Feb 2019 09:26:51 +0100 Subject: [PATCH] [Messenger] Fix DataCollector template --- .../views/Collector/messenger.html.twig | 120 +++++++++--------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig index ed1183738098c..f3e8fecece384 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig @@ -30,15 +30,15 @@ {% endblock %} {% block menu %} - - {{ include('@WebProfiler/Icon/messenger.svg') }} - Messages - {% if collector.exceptionsCount > 0 %} - - {{ collector.exceptionsCount }} - - {% endif %} - + + {{ include('@WebProfiler/Icon/messenger.svg') }} + Messages + {% if collector.exceptionsCount > 0 %} + + {{ collector.exceptionsCount }} + + {% endif %} + {% endblock %} {% block head %} @@ -71,31 +71,31 @@

No messages have been collected.

{% else %} - -
-
- {% set messages = collector.messages %} - {% set exceptionsCount = collector.exceptionsCount %} -

All{{ messages|length }}

- -
-

Ordered list of dispatched messages across all your buses

- {{ helper.render_bus_messages(messages, true) }} +
+
+ {% set messages = collector.messages %} + {% set exceptionsCount = collector.exceptionsCount %} +

All{{ messages|length }}

+ +
+

Ordered list of dispatched messages across all your buses

+ {{ helper.render_bus_messages(messages, true) }} +
-
- {% for bus in collector.buses %} -
- {% set messages = collector.messages(bus) %} - {% set exceptionsCount = collector.exceptionsCount(bus) %} -

{{ bus }}{{ messages|length }}

- -
-

Ordered list of messages dispatched on the {{ bus }} bus

- {{ helper.render_bus_messages(messages) }} -
+ {% for bus in collector.buses %} +
+ {% set messages = collector.messages(bus) %} + {% set exceptionsCount = collector.exceptionsCount(bus) %} +

{{ bus }}{{ messages|length }}

+ +
+

Ordered list of messages dispatched on the {{ bus }} bus

+ {{ helper.render_bus_messages(messages) }} +
+
+ {% endfor %}
- {% endfor %} {% endif %} {% endblock %} @@ -105,24 +105,24 @@ {% for dispatchCall in messages %} - - - + + + @@ -133,7 +133,7 @@ {% set link = caller.file|file_link(caller.line) %} {% if link %} {{ caller.name }} - {% else %} + {% else %} {{ caller.name }} {% endif %} {% else %} @@ -150,10 +150,10 @@ {% if showBus %} - - - - + + + + {% endif %} @@ -170,12 +170,12 @@ {% if dispatchCall.exception is defined %} - - - - + + + + {% endif %}
- {{ profiler_dump(dispatchCall.message.type) }} - {% if showBus %} - {{ dispatchCall.bus }} - {% endif %} - {% if dispatchCall.exception is defined %} - exception - {% endif %} - - {{ include('@Twig/images/icon-minus-square.svg') }} - {{ include('@Twig/images/icon-plus-square.svg') }} - -
+ {{ profiler_dump(dispatchCall.message.type) }} + {% if showBus %} + {{ dispatchCall.bus }} + {% endif %} + {% if dispatchCall.exception is defined %} + exception + {% endif %} + + {{ include('@Twig/images/icon-minus-square.svg') }} + {{ include('@Twig/images/icon-plus-square.svg') }} + +
Bus{{ dispatchCall.bus }}
Bus{{ dispatchCall.bus }}
Message
Exception - {{ profiler_dump(dispatchCall.exception.value, maxDepth=1) }} -
Exception + {{ profiler_dump(dispatchCall.exception.value, maxDepth=1) }} +