forked from DGNum/gestiojeux
19 lines
849 B
HTML
19 lines
849 B
HTML
<header>
|
|
<h1>
|
|
<a href="{% url "mainsite:home" %}">
|
|
GestioJeux
|
|
</a>
|
|
</h1>
|
|
{% with url_name=request.resolver_match.url_name %}
|
|
<nav>
|
|
<a {% if url_name == "home" %}class="current"{% endif %} href="{% url "mainsite:home" %}"><i class="fa fa-home" aria-hidden="true"></i></a>
|
|
<a {% if url_name == "inventory" %}class="current"{% endif %} href="{% url "inventory:inventory" %}">Inventaire</a>
|
|
<a {% if url_name == "suggestions" %}class="current"{% endif %} href="">Suggestions</a>
|
|
</nav>
|
|
{% if request.user.is_authenticated %}
|
|
<a class="logout" href="{% url "gestiojeux_auth:logout" %}?next=/">Déconnexion</a>
|
|
{% else %} <a class="login" href="{% url "gestiojeux_auth:login" %}?next={{ request.get_full_path }}">Connexion</a>
|
|
{% endif %}
|
|
{# <a class="login" href="">Logout</a> #}
|
|
{% endwith %}
|
|
</header>
|