2020-10-11 22:16:00 +02:00
|
|
|
<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>
|
2020-10-17 21:31:55 +02:00
|
|
|
{% 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 %}
|
2020-10-11 22:16:00 +02:00
|
|
|
{# <a class="login" href="">Logout</a> #}
|
|
|
|
{% endwith %}
|
|
|
|
</header>
|