templates/nav.html.twig line 1

  1.         <ul class="nav justify-content-end bg-primary align-items-center px-5" id="main-nav">
  2.                     <li class="nav-item">
  3.                     <a class="nav-link active text-light" aria-current="page" href="{{path('app_home')}}">Accueil</a>
  4.                     </li>
  5.             
  6.                     <li class="nav-item">
  7.                     <a class="nav-link text-light" href="{{path('app_contact')}}">Contact</a>
  8.                     </li>
  9.                     <li class="nav-item">
  10.                     <a class="nav-link text-light" href="{{path('app_whoweare')}}">Qui sommes-nous ?</a>
  11.                     </li>
  12.                     {% if app.user %}
  13.                     <li class="nav-item">
  14.                     <a class="nav-link text-light" href="{{path('app_profile')}}">Profile</a>
  15.                     </li>
  16.                     <li class="nav-item">
  17.                     <a class="nav-link text-light" href="{{path('app_logout')}}">Déconnexion</a>
  18.                     </li>
  19.                     {% else %}
  20.                     <li class="nav-item">
  21.                     <a class="nav-link text-light" href="{{path('app_login')}}">Connexion</a>
  22.                     </li>
  23.                     <li class="nav-item">
  24.                     <a class="nav-link text-light" href="{{path('app_register')}}">Inscription</a>
  25.                     </li>
  26.                     <li class="nav-item">
  27.                         <form id="my-form" class="d-flex" role="search">
  28.                              <input class="form-control me-2" id="search-content" type="search" placeholder="Rechercher" aria-label="Search">
  29.                         </form>
  30.                     </li>
  31.                     {% endif %}
  32.     
  33.                     
  34.         </ul>