templates/header_menu.html.twig line 1
{% extends 'base.html.twig' %}
{% block header %}
<nav class="navbar navbar-expand-lg navbar-dark bg-black h-25">
<a class="navbar-brand" href="{{ path('app_home') }}">
<img src="{{ asset('build/images/specprix_logo.png') }}" alt="specprix logo" height="80">
</a>
<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">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse flex-grow-0" id="navbarSupportedContent">
<ul class="navbar-nav text-end me-4">
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_leagues') }}">Leagues</a>
</li>
{#<li class="nav-item active">
<a class="nav-link" href="{{ path('app_races') }}">Races</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_standings') }}">Standings F1</a>
</li>#}
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_get_started') }}">Get Started</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_admin') }}">Admin Settings</a>
</li>
{% endif %}
{% if is_granted('ROLE_USER') %}
{#<li class="nav-item active">
<a class="nav-link" href="{{ path('app_settings') }}">User Settings</a>
</li>#}
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_logout') }}">Log out</a>
</li>
{% else %}
<li class="nav-item active">
<a class="nav-link" href="{{ path('app_login') }}">Log in</a>
</li>
{% endif %}
</ul>
</div>
</nav>
{% endblock %}