templates/header_menu.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block header %}
  3.   <nav class="navbar navbar-expand-lg navbar-dark bg-black h-25">
  4.     <a class="navbar-brand" href="{{ path('app_home') }}">
  5.       <img src="{{ asset('build/images/specprix_logo.png') }}" alt="specprix logo" height="80">
  6.     </a>
  7.     <button id="navbar-toggler" class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  8.       <span class="navbar-toggler-icon"></span>
  9.     </button>
  10.     <div class="collapse navbar-collapse flex-grow-0" id="navbarSupportedContent">
  11.       <ul class="navbar-nav text-end me-4">
  12.         <li class="nav-item active">
  13.           <a class="nav-link" href="{{ path('app_leagues') }}">Leagues</a>
  14.         </li>
  15.         {#<li class="nav-item active">
  16.           <a class="nav-link" href="{{ path('app_races') }}">Races</a> 
  17.         </li>
  18.         <li class="nav-item active">
  19.           <a class="nav-link" href="{{ path('app_standings') }}">Standings F1</a> 
  20.         </li>#}
  21.         <li class="nav-item active">
  22.           <a class="nav-link" href="{{ path('app_get_started') }}">Get Started</a>
  23.         </li>
  24.         {% if is_granted('ROLE_ADMIN') %}
  25.           <li class="nav-item active">
  26.             <a class="nav-link" href="{{ path('app_admin') }}">Admin Settings</a>
  27.           </li>
  28.         {% endif %}
  29.         {% if is_granted('ROLE_USER') %}
  30.               {#<li class="nav-item active"> 
  31.                   <a class="nav-link" href="{{ path('app_settings') }}">User Settings</a> 
  32.               </li>#}
  33.               <li class="nav-item active"> 
  34.                   <a class="nav-link" href="{{ path('app_logout') }}">Log out</a>
  35.               </li>
  36.           {% else %}
  37.               <li class="nav-item active"> 
  38.                 <a class="nav-link" href="{{ path('app_login') }}">Log in</a>
  39.               </li>
  40.           {% endif %}
  41.       </ul>
  42.     </div>
  43.   </nav>
  44.           
  45. {% endblock %}