From d29f04c1494560c67c89ea26a8599a55daeb056c Mon Sep 17 00:00:00 2001 From: Tom Van Looy Date: Mon, 22 Feb 2016 14:30:57 +0100 Subject: [PATCH] Update twig.html.twig Replace base64 template icon with svg version. If you set the Content-Security-Policy you would need to provide "img-src 'self' data:;" just for that icon (or get an error in the console). This should be fixed in the new version of the toolbar but it would be nice to have a fix for 2.7 LTS too. --- .../Resources/views/Collector/twig.html.twig | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/twig.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/twig.html.twig index 0ecd469bd0..ba23a3c83d 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/twig.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/twig.html.twig @@ -3,7 +3,13 @@ {% block toolbar %} {% set time = collector.templatecount ? '%0.0f ms'|format(collector.time) : 'n/a' %} {% set icon %} - Twig + + + + + + + {{ time }} {% endset %} {% set text %} @@ -29,7 +35,15 @@ {% block menu %} - Twig + + + + + + + + + Twig {{ collector.templatecount }}