Skip to content

Commit 2f9cb38

Browse files
committed
Use source() function to include assets in template
1 parent b210e51 commit 2f9cb38

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Resources/views/Collector/security.html.twig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block toolbar %}
66
{% if collector.firewall %}
77
{% set icon %}
8-
{{ include('@Security/Collector/icon.svg') }}
8+
{{ source('@Security/Collector/icon.svg') }}
99
<span class="sf-toolbar-value">{{ collector.user|default('n/a') }}</span>
1010
{% endset %}
1111

@@ -109,7 +109,7 @@
109109

110110
{% block menu %}
111111
<span class="label {{ not collector.firewall or not collector.token ? 'disabled' }}">
112-
<span class="icon">{{ include('@Security/Collector/icon.svg') }}</span>
112+
<span class="icon">{{ source('@Security/Collector/icon.svg') }}</span>
113113
<strong>Security</strong>
114114
</span>
115115
{% endblock %}
@@ -130,7 +130,7 @@
130130
</div>
131131

132132
<div class="metric">
133-
<span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.authenticated ? 'yes' : 'no') ~ '.svg') }}</span>
133+
<span class="value">{{ source('@WebProfiler/Icon/' ~ (collector.authenticated ? 'yes' : 'no') ~ '.svg') }}</span>
134134
<span class="label">Authenticated</span>
135135
</div>
136136
</div>
@@ -187,11 +187,11 @@
187187
<span class="label">Name</span>
188188
</div>
189189
<div class="metric">
190-
<span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.firewall.security_enabled ? 'yes' : 'no') ~ '.svg') }}</span>
190+
<span class="value">{{ source('@WebProfiler/Icon/' ~ (collector.firewall.security_enabled ? 'yes' : 'no') ~ '.svg') }}</span>
191191
<span class="label">Security enabled</span>
192192
</div>
193193
<div class="metric">
194-
<span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.firewall.stateless ? 'yes' : 'no') ~ '.svg') }}</span>
194+
<span class="value">{{ source('@WebProfiler/Icon/' ~ (collector.firewall.stateless ? 'yes' : 'no') ~ '.svg') }}</span>
195195
<span class="label">Stateless</span>
196196
</div>
197197
</div>
@@ -310,7 +310,7 @@
310310

311311
<tr>
312312
<td class="font-normal">{{ profiler_dump(authenticator.stub) }}</td>
313-
<td class="no-wrap">{{ include('@WebProfiler/Icon/' ~ (authenticator.supports ? 'yes' : 'no') ~ '.svg') }}</td>
313+
<td class="no-wrap">{{ source('@WebProfiler/Icon/' ~ (authenticator.supports ? 'yes' : 'no') ~ '.svg') }}</td>
314314
<td class="no-wrap">{{ '%0.2f'|format(authenticator.duration * 1000) }} ms</td>
315315
<td class="font-normal">{{ authenticator.passport ? profiler_dump(authenticator.passport) : '(none)' }}</td>
316316
</tr>

0 commit comments

Comments
 (0)