Skip to content

Commit 1d8acf6

Browse files
94noniwouterj
authored andcommitted
[SecurityBundle] Change n/a information label from red to yellow
1 parent ffd0a55 commit 1d8acf6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
{% if collector.token %}
77
{% set is_authenticated = collector.enabled and collector.authenticated %}
88
{% set color_code = is_authenticated ? '' : 'yellow' %}
9+
{% elseif collector.enabled %}
10+
{% set color_code = collector.authenticatorManagerEnabled ? 'yellow' : 'red' %}
911
{% else %}
10-
{% set color_code = collector.enabled ? 'red' : '' %}
12+
{% set color_code = '' %}
1113
{% endif %}
1214

1315
{% set icon %}
@@ -35,7 +37,7 @@
3537

3638
<div class="sf-toolbar-info-piece">
3739
<b>Authenticated</b>
38-
<span class="sf-toolbar-status sf-toolbar-status-{{ is_authenticated ? 'green' : 'red' }}">{{ is_authenticated ? 'Yes' : 'No' }}</span>
40+
<span class="sf-toolbar-status sf-toolbar-status-{{ is_authenticated ? 'green' : 'yellow' }}">{{ is_authenticated ? 'Yes' : 'No' }}</span>
3941
</div>
4042

4143
<div class="sf-toolbar-info-piece">
@@ -45,7 +47,7 @@
4547
{% else %}
4648
<div class="sf-toolbar-info-piece">
4749
<b>Authenticated</b>
48-
<span class="sf-toolbar-status sf-toolbar-status-red">No</span>
50+
<span class="sf-toolbar-status sf-toolbar-status-yellow">No</span>
4951
</div>
5052
{% endif %}
5153

0 commit comments

Comments
 (0)