Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colorize toolbar label if one or more blocks were rendered #231

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Resources/views/Profiler/block.html.twig
Expand Up @@ -8,7 +8,7 @@
<div class="sf-toolbar-icon">
<a href="{{ path('_profiler', { 'token': token, 'panel': name }) }}">
{# fake image span #}<span style="width:0px; height: 28px; vertical-align: middle;"></span>
<span class="sf-toolbar-status">{{ collector.getTotalBlock() }}</span> blocks
<span class="sf-toolbar-status {% if collector.getTotalBlock() > 0 %}sf-toolbar-status-green{% endif %}">{{ collector.getTotalBlock() }}</span> blocks
{% if collector.events|length > 0 %}<strong>*</strong>{% endif %}
</a>
</div>
Expand Down