Files
hehe/user/plugins/login/templates/partials/login-status.html.twig
T
2018-08-01 16:00:05 +02:00

6 lines
372 B
Twig
Executable File

<span class="login-status">
{% if grav.user.authenticated %}
<strong>{{ grav.user.fullname ?: grav.user.username }}</strong>, <a class="logout" href="{{ uri.addNonce((base_url_relative ~ uri.path)|trim('/') ~ '/task' ~ config.system.param_sep ~ 'login.logout', 'logout-form', 'logout-nonce')|e }}">{{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}</a>
{% endif %}
</span>