templates/_nav.html.twig line 1

Open in your IDE?
  1. <!-- Nav -->
  2. <nav id="nav-top" class="navbar justify-content-between">
  3.     <div id="brand" class="text-white"><a class="navbar-brand mx-4" href="{{ path('app_main_home') }}"><img src="{{ asset('assets/images/logo/TGS-concept_LOGO-Gris.jpg') }}" height="88" alt="Logo TGS Concept" /></a> <span id="slogan">L'artisan de tous vos projets</span></div>
  4.     <ul id="nav-menu" class="">
  5.         <li class="nav-item">
  6.             <a class="nav-link text-white {{ app.request.get('_route') == 'app_main_home' ? 'active' }}" href="{{ path('app_main_home') }}">Accueil</a>
  7.         </li>
  8.         <li class="nav-item">
  9.             <a class="nav-link text-white {{ app.request.get('_route') == 'app_main_about' ? 'active' }}" href="{{ path('app_main_about') }}">A propos</a>
  10.         </li>
  11.         <li class="nav-item">
  12.             <a class="nav-link text-white {{ app.request.get('_route') == 'app_main_contact' ? 'active' }}" href="{{ path('app_main_contact') }}">Contact</a>
  13.         </li>
  14.         <li class="nav-item">
  15.             <a class="nav-link text-white {{ app.request.get('_route') == 'app_main_creations' ? 'active' }}" href="{{ path('app_main_creations') }}"><i class="bi bi-images"></i> Galeries</a>
  16.         </li>
  17.     </ul>
  18.     {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  19.         <a class="nav-link" href="{{ path('app_back_main_home') }}"><span id="pseudo"><i class="bi bi-person-circle"></i><br />{{ app.user.nickname }}</span></a>
  20.         <a class="btn btn-danger me-2" href="{{ path('logout') }}">Déconnexion<br /><i class="bi bi-box-arrow-left"></i></a>
  21.     {% else %}
  22.         {# <a class="btn btn-success me-2" href="{{ path('app_login') }}">Connexion</a> #}
  23.     {% endif %}
  24.     <button id="burger" class="burger">
  25.         <i class="fas fa-bars"></i>
  26.     </button>
  27. </nav>