login-status.html.twig 357 B

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