templates/backend/partials/_header.html.twig line 1

Open in your IDE?
  1. {% if app.user is not null %}
  2.     <nav class="navbar navbar-expand navbar-light navbar-bg">
  3.         <a class="sidebar-toggle js-sidebar-toggle">
  4.             <i class="hamburger align-self-center"></i>
  5.         </a>
  6.         <div class="navbar-collapse collapse">
  7.             <ul class="navbar-nav navbar-align">
  8.                 <li class="nav-item ms-4 mt-2">
  9.                     <span class="text-dark">
  10.                         <a href="{{ path('user_edit_profile', {'id': app.user.id}) }}">{{ app.user.firstname ~ ' ' ~ app.user.lastname }}</a>
  11.                     </span>
  12.                 </li>
  13.                 <li class="nav-item ms-4">
  14.                     <a class="nav-icon" href="{{ path('app_logout') }}" title="Déconnexion">
  15.                         <i class="fas fa-sign-out-alt"></i>
  16.                     </a>
  17.                 </li>
  18.             </ul>
  19.         </div>
  20.     </nav>
  21. {% endif %}