From ccfce10b26c03ea0425c867441b4d0885aaa892b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 17 Nov 2021 16:41:28 +0100 Subject: [PATCH] [WebProfilerBundle] Tweak the colors of the security panel --- .../Resources/views/Collector/security.html.twig | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig index b332ba5ddb596..0771f15a803b7 100644 --- a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig +++ b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig @@ -4,15 +4,7 @@ {% block toolbar %} {% if collector.firewall %} - {% if collector.token %} - {% set is_authenticated = collector.enabled and collector.authenticated %} - {% set color_code = not is_authenticated ? 'yellow' %} - {% elseif collector.enabled %} - {% set color_code = collector.authenticatorManagerEnabled ? 'yellow' : 'red' %} - {% else %} - {% set color_code = '' %} - {% endif %} - + {% set color_code = collector.enabled and not collector.authenticatorManagerEnabled ? 'yellow' %} {% set icon %} {{ include('@Security/Collector/icon.svg') }} {{ collector.user|default('n/a') }} @@ -38,7 +30,7 @@
Authenticated - {{ is_authenticated ? 'Yes' : 'No' }} + {{ collector.authenticated ? 'Yes' : 'No' }}