1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-25 17:14:19 +00:00
estus/templates/nav.html.j2
Stefano Pigozzi 4ec935a00e Aggiunta la navbar
ma non l'avevo già fatto ieri?
2017-02-02 08:19:45 +01:00

18 lines
801 B
Django/Jinja

<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand {% if type is equalto "main" %}active{% endif %}" href="/dashboard">Inventario</a>
</div>
<ul class="nav navbar-nav">
<li class="{% if type is equalto "ente" %}active{% endif %}"><a href="/ente_list">Enti</a></li>
<li class="{% if type is equalto "serv" %}active{% endif %}"><a href="/serv_list">Servizi</a></li>
<li class="{% if type is equalto "imp" %}active{% endif %}"><a href="/imp_list">Impiegati</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<p class="navbar-text">
{{user}}
</p>
<a href="/login" class="btn btn-danger navbar-btn btn-right">Logout</a>
</ul>
</div>
</nav>