Skip to content

Commit fad2d5e

Browse files
authored
Merge pull request #247 from dkarlovi/bundle-profiler-view
[bundle] streamline profiler view when no messages were sent
2 parents 6af36be + aa0e009 commit fad2d5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
{% block panel %}
3030
<h2>Sent messages</h2>
31+
{% if collector.sentMessages|length > 0 %}
3132
<table>
3233
<thead>
3334
<tr>
@@ -59,4 +60,9 @@
5960
</tbody>
6061

6162
</table>
63+
{% else %}
64+
<div class="empty">
65+
<p>No messages were sent.</p>
66+
</div>
67+
{% endif %}
6268
{% endblock %}

0 commit comments

Comments
 (0)