Disable Twig in the profiler menu when Twig is not used

This commit is contained in:
Javier Eguiluz 2019-01-30 11:27:26 +01:00
parent 3cfb558f03
commit b47408179f

View File

@ -31,7 +31,7 @@
{% endblock %} {% endblock %}
{% block menu %} {% block menu %}
<span class="label"> <span class="label {{ 0 == collector.templateCount ? 'disabled' }}">
<span class="icon">{{ include('@WebProfiler/Icon/twig.svg') }}</span> <span class="icon">{{ include('@WebProfiler/Icon/twig.svg') }}</span>
<strong>Twig</strong> <strong>Twig</strong>
</span> </span>