From 6ead8a157e16a5e5b7358f7d329ddc1b9ff993a8 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 7 Feb 2013 14:59:04 +0100 Subject: [PATCH] [WebProfilerBundle] removed the display of some information when their value is n/a --- .../views/Collector/config.html.twig | 69 +++++++++++-------- 1 file changed, 42 insertions(+), 27 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig index 9e8558a8b0..3deb423a6a 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig @@ -49,24 +49,33 @@ Environment {{ token }} - - {{ collector.appname }}{{ collector.env }} - + {% if 'n/a' != collector.appname or 'n/a' != collector.env %} + + {{ collector.appname }} + {{ collector.env }} + + {% endif %} {% endset %} {% set text %} {% spaceless %} -
- Name - {{ collector.appname }} -
-
- Environment - {{ collector.env }} -
-
- Debug - {{ collector.debug ? 'en' : 'dis' }}abled -
+ {% if 'n/a' != collector.appname %} +
+ Name + {{ collector.appname }} +
+ {% endif %} + {% if 'n/a' != collector.env %} +
+ Environment + {{ collector.env }} +
+ {% endif %} + {% if 'n/a' != collector.debug %} +
+ Debug + {{ collector.debug ? 'en' : 'dis' }}abled +
+ {% endif %}
Token @@ -100,18 +109,24 @@ Symfony version {{ collector.symfonyversion }} - - Application name - {{ collector.appname }} - - - Environment - {{ collector.env }} - - - Debug - {{ collector.debug ? 'enabled' : 'disabled' }} - + {% if 'n/a' != collector.appname %} + + Application name + {{ collector.appname }} + + {% endif %} + {% if 'n/a' != collector.env %} + + Environment + {{ collector.env }} + + {% endif %} + {% if 'n/a' != collector.debug %} + + Debug + {{ collector.debug ? 'enabled' : 'disabled' }} + + {% endif %}

PHP configuration