diff --git a/pkg/enqueue-bundle/Resources/views/Icon/icon.svg b/pkg/enqueue-bundle/Resources/views/Icon/icon.svg new file mode 100644 index 000000000..6a3179b4e --- /dev/null +++ b/pkg/enqueue-bundle/Resources/views/Icon/icon.svg @@ -0,0 +1,9 @@ + diff --git a/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig b/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig index f0e2ca9f8..a8f783dfc 100644 --- a/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig +++ b/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig @@ -1,10 +1,27 @@ {% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} + {% if collector.sentMessages|length > 0 %} + {% set icon %} + {{ include('@Enqueue/Icon/icon.svg') }} +
+ {% endset %} + + {% set text %} + + {% endset %} + + {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true }) }} + {% endif %} {% endblock %} {% block menu %} + {{ include('@Enqueue/Icon/icon.svg') }} Message Queue {% endblock %} @@ -13,19 +30,19 @@# | -Topic | -Message | -Priority | -
---|---|---|---|
# | +Topic | +Message | +Priority | +
{{ loop.index }} | -{{ sentMessage.topic }} | -+ {% for sentMessage in collector.sentMessages %} + | |
{{ loop.index }} | +{{ sentMessage.topic }} | +- | {{ collector.prettyPrintPriority(sentMessage.priority) }} | -{{ collector.prettyPrintPriority(sentMessage.priority) }} | + + {% endfor %}