Skip to content

Commit 0746741

Browse files
Merge branch '5.2' into 5.3
* 5.2: Fix CI [SecurityBundle] Change n/a information label from red to yellow Fix CI * validators.(ru|lt).xlf - wrong trans-unit ids Add new translation in Hungarian [Validator] Added missing spanish translation
2 parents ccd5720 + 1203fe9 commit 0746741

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Resources/views/Collector/security.html.twig

Lines changed: 5 additions & 3 deletions
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)