File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Resources/views/Collector Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
{% block toolbar %}
6
6
{% if collector .firewall %}
7
- {% if collector .token %}
8
- {% set is_authenticated = collector .enabled and collector .authenticated %}
9
- {% set color_code = not is_authenticated ? ' yellow' %}
10
- {% elseif collector .enabled %}
11
- {% set color_code = collector .authenticatorManagerEnabled ? ' yellow' : ' red' %}
12
- {% else %}
13
- {% set color_code = ' ' %}
14
- {% endif %}
15
-
7
+ {% set color_code = collector .enabled and not collector .authenticatorManagerEnabled ? ' yellow' %}
16
8
{% set icon %}
17
9
{{ include (' @Security/Collector/icon.svg' ) }}
18
10
<span class =" sf-toolbar-value" >{{ collector .user | default (' n/a' ) }}</span >
38
30
39
31
<div class =" sf-toolbar-info-piece" >
40
32
<b >Authenticated</b >
41
- <span class =" sf-toolbar-status sf-toolbar-status-{{ is_authenticated ? ' green' : ' yellow' }}" >{{ is_authenticated ? ' Yes' : ' No' }}</span >
33
+ <span class =" sf-toolbar-status sf-toolbar-status-{{ collector . authenticated ? ' green' : ' yellow' }}" >{{ collector . authenticated ? ' Yes' : ' No' }}</span >
42
34
</div >
43
35
44
36
<div class =" sf-toolbar-info-piece" >
You can’t perform that action at this time.
0 commit comments