templates/partials/_navConnexion.html.twig line 1

Open in your IDE?
  1. <nav class="navbar navbar-expand-sm navbar-success mb-4"  style="background-color:black;" aria-label="Third navbar example">
  2.     <div class="container-fluid">
  3.         <a class="navbar-brand" style="color:wheat;font-size:18px;font-weight:700;font-style:italic;" href="#">MANDEH</a>
  4.         <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsExample03" 
  5.                 aria-controls="navbarsExample03" aria-expanded="false" aria-label="Toggle navigation">
  6.         <span class="navbar-toggler-icon"  style="border:2px solid beige;"></span>
  7.         </button>
  8.         <div class="collapse navbar-collapse" id="navbarsExample03">
  9.             <ul class="navbar-nav ml-auto mb-4 mb-sm-0" style="margin-left:auto;">
  10.                 {% if app.user %}
  11.                     <li class="nav-item">
  12.                         <a class="nav-link" style="color:khaki;font-size:22px;font-weight:900;font-style:italic;" 
  13.                             aria-current="page" href="{{ path('app_logout') }}">Déconnexion</a>
  14.                     </li>
  15.                     <li class="nav-item">
  16.                         <a class="nav-link" style="color:khaki;font-size:22px;font-weight:900;font-style:italic;" 
  17.                             aria-current="page" href="{{ path('app_menu_principal') }}">Retour au menu principal</a>
  18.                     </li>
  19.                 {% else %}
  20.                     <li class="nav-item">
  21.                         <a class="nav-link" style="color:white;font-size:18px;font-weight:700;font-style:italic;" 
  22.                             aria-current="page" href="{{ path('app_login') }}">Se connecter</a>
  23.                     </li>
  24.                 {% endif %}
  25.             </ul>
  26.         </div>
  27.     </div>
  28.  </nav>