]> git.agnieray.net Git - galette.git/blob - galette/templates/default/elements/modes.html.twig
Rely on static methods rather than constants comparison
[galette.git] / galette / templates / default / elements / modes.html.twig
1 {% if login.isSuperAdmin() %}
2 <span class="tooltip ui red icon circular label" title="{{ _T("You are actually logged-in as superadmin. Some functionnalities may not be available since this is *not* a regular member.") }}">
3 <i class="shield icon" aria-hidden="true"></i>
4 {{ _T("Superadmin") }}
5 </span>
6 {% endif %}
7 {% if callstatic('\\Galette\\Core\\Galette', 'isDemo') %}
8 <span class="tooltip ui orange icon circular label" title="{{ _T("This application runs under DEMO mode, all features may not be available.") }}">
9 <i class="gamepad icon" aria-hidden="true"></i>
10 {{ _T("Demonstration") }}
11 </span>
12 {% endif %}