Skip to content

Commit

Permalink
[bundle] streamline profiler view when no messages were sent
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi committed Oct 28, 2017
1 parent 6af36be commit aa0e009
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

{% block panel %}
<h2>Sent messages</h2>
{% if collector.sentMessages|length > 0 %}
<table>
<thead>
<tr>
Expand Down Expand Up @@ -59,4 +60,9 @@
</tbody>

</table>
{% else %}
<div class="empty">
<p>No messages were sent.</p>
</div>
{% endif %}
{% endblock %}

0 comments on commit aa0e009

Please sign in to comment.