nav-user-details.html.twig 702 B

12345678910111213141516171819
  1. <div id="offline-status">
  2. <span><i class="fa fa-fw fa-plane"></i> You are offline</span>
  3. </div>
  4. {% set user = admin.user %}
  5. {% set route = grav['flex_objects'] is defined ? grav['flex_objects'].adminRoute(user) : '' %}
  6. {% if route == '' %}
  7. {% set route = '/user/' ~ user.username %}
  8. {% endif %}
  9. <div id="admin-user-details">
  10. <a href="{{ base_url_relative ~ route }}">
  11. {% include 'partials/nav-user-avatar.html.twig' %}
  12. <div class="admin-user-names">
  13. <h4>{{ user.fullname|e }} {% if user.twofa_enabled and config.plugins.admin.twofa_enabled %}<span class="badge">2FA</span>{% endif %}</h4>
  14. <h5>{{ user.title|e }}</h5>
  15. </div>
  16. </a>
  17. </div>