Skip to content

Commit

Permalink
Merge pull request #247 from dkarlovi/bundle-profiler-view
Browse files Browse the repository at this point in the history
[bundle] streamline profiler view when no messages were sent
  • Loading branch information
makasim authored Oct 28, 2017
2 parents 6af36be + aa0e009 commit fad2d5e
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 fad2d5e

Please sign in to comment.