8000 Disable Twig in the profiler menu when Twig is not used · symfony/symfony@b474081 · GitHub
[go: up one dir, main page]

Skip to content

Commit b474081

Browse files
committed
Disable Twig in the profiler menu when Twig is not used
1 parent 3cfb558 commit b474081

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/twig.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{% endblock %}
3232

3333
{% block menu %}
34-
<span class="label">
34+
<span class="label {{ 0 == collector.templateCount ? 'disabled' }}">
3535
<span class="icon">{{ include('@WebProfiler/Icon/twig.svg') }}</span>
3636
<strong>Twig</strong>
3737
</span>

0 commit comments

Comments
 (0)
0