2021-12-29 01:03:08 +01:00
|
|
|
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<i class="bi-shop" style="font-size: 2rem; padding-right: 0.5rem; color: white;"></i>
|
|
|
|
<a class="navbar-brand" href="#">IceCold</a>
|
2022-01-02 01:01:00 +01:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
|
|
|
|
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
2021-12-29 01:03:08 +01:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
|
|
<ul class="navbar-nav me-auto mb-2 mb-md-0">
|
|
|
|
<li class="nav-item">
|
2022-01-01 23:36:26 +01:00
|
|
|
<a class="nav-link active" href="{{ path('home') }}">Home</a>
|
2021-12-29 01:03:08 +01:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2022-01-02 01:01:00 +01:00
|
|
|
<a class="nav-link" href="{{ path('fridge_list') }}">Fridges</a>
|
2021-12-29 01:03:08 +01:00
|
|
|
</li>
|
2022-01-02 01:01:00 +01:00
|
|
|
|
|
|
|
{% if is_granted('ROLE_ADMIN') %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ path('admin') }}">Admin</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2021-12-29 01:03:08 +01:00
|
|
|
</ul>
|
2022-01-01 23:36:26 +01:00
|
|
|
<ul class="navbar-nav ms-auto mb-2 mb-md-0">
|
|
|
|
{% if is_granted('ROLE_USER') %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" href="{{ path('logout') }}">Logout</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" href="{{ path('login') }}">Login</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" href="{{ path('register') }}">Register</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2021-12-29 01:03:08 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-01 23:36:26 +01:00
|
|
|
</nav>
|