templates/_elements/_header.html.twig line 1

Open in your IDE?
  1. <header class="navbar sticky-top flex-md-nowrap p-0 shadow">
  2.     <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="{{ path('index_index')}}"><i class="fas fa-user-clock"></i> Kreno</a>
  3.     <nav class="d-inline-flex mt-2 mt-md-0 ms-md-auto me-3">
  4.       {% if app.user %}
  5.         <a class="me-3 py-2 text-dark text-decoration-none" href="#">{{ app.user.displayName }}</a>
  6.         {% if is_granted('IS_IMPERSONATOR') %}
  7.             <a class="me-3 py-2 text-dark text-decoration-none" href="{{ impersonation_exit_path(path('admin_user_show', {'id': app.user.id}) ) }}"><i class="fas fa-door-closed"></i></a>
  8.         {% endif %}
  9.         <a class="py-2 text-dark text-decoration-none" href="{{ path('app_logout') }}">Deconnexion</a>
  10.       {% endif %}
  11.     </nav>
  12. </header>
  13.