templates/content/elements/navBarImmemory.html.twig line 1

Open in your IDE?
  1. <section class="col-12">
  2.   <nav id"menuGeneral" class="navbar navbar navbar-expand-lg navbar-light">
  3.     <div class="container-fluid">
  4.       <!-- Logo retour page accueil -->
  5.       <a class="navbar-brand" href="{{ path("immemory_index") }}">
  6.         <img class="" src="{{ pathLocal }}/images/cdrom/immemoLogo.png" width="200px" height="39px" />
  7.       </a>
  8.       <!-- button toggle petits ecrans -->
  9.       <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedImmemory" aria-controls="navbarSupportedImmemory" aria-expanded="false" aria-label="Toggle navigation">
  10.         <i class="fas fa-sort-down fa-2x" style="color:white;"></i>
  11.       </button>
  12.       <!-- Menu -->
  13.       <div class="collapse navbar-collapse justify-content-end" id="navbarSupportedImmemory">
  14.         <ul class="navbar-nav">
  15.           <!-- CD ROM
  16.           <li class="nav-item {% if controller_name == 'front_cdromBifNatif' %} active{% endif %}">
  17.             <a class="navbar-brand nav-link" href="{{ path("front_cdromBifNatif") }}" target="_blank">
  18.               CD ROM
  19.             </a>
  20.           </li>
  21.           -->
  22.           <!-- si admin ou membre -->
  23.           {% if app.user is not null %}
  24.             <!-- Tableau de bord -->
  25.             <li class="nav-item {% if controller_name == 'membre_index' %} active{% endif %}">
  26.               <a class="navbar-brand nav-link {% if controller_name == "membre_index" %}active{% endif %}" href="{{ path("membre_index") }}">
  27.                 Tableau de bord
  28.               </a>
  29.             </li>
  30.             {% for role in app.user.roles  %}
  31.               {% if role == "ROLE_ADMIN" %}
  32.               {% else %}
  33.               {% endif %}
  34.             {% endfor %}
  35.             <!-- Déconnexion -->
  36.             <li class="nav-item {% if controller_name == 'app_logout' %} active{% endif %}">
  37.               <a class="navbar-brand nav-link {% if controller_name == "app_logout" %}active{% endif %}" href="{{ path("app_logout") }}">
  38.                 Déconnexion
  39.               </a>
  40.             </li>
  41.           <!-- sinon visiteur -->
  42.           {% else %}
  43.             <!-- Tableau de bord
  44.             <li class="nav-item {% if controller_name == 'visiteur_index' %} active{% endif %}">
  45.               <a class="navbar-brand nav-link {% if controller_name == "visiteur_index" %}active{% endif %}" href="{{ path("visiteur_index") }}">
  46.                 Tableau de bord
  47.               </a>
  48.             </li>
  49.             -->
  50.             <!-- Identification -->
  51.             <li class="nav-item {% if controller_name == 'app_login' %} active{% endif %}">
  52.               <a class="navbar-brand nav-link {% if controller_name == "app_login" %}active{% endif %}" href="{{ path("app_login") }}">
  53.                 Identification
  54.               </a>
  55.             </li>
  56.           {% endif %}
  57.         </ul>
  58.       </div>
  59.     </div>
  60.   </nav>
  61. </section>