forked from DGNum/gestiojeux
be99a76829
Having a title in the header is worse than a normal title inside the page. Restore the border to compensate.
20 lines
1,007 B
HTML
20 lines
1,007 B
HTML
<header>
|
|
<h1>GestioJeux</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>
|
|
{% if request.user.is_staff %}
|
|
<a href="{% url "admin:index" %}">Admin</a>
|
|
{% endif %}
|
|
</nav>
|
|
{% if request.user.is_authenticated %}
|
|
<div class="username">{{ request.user.username }}</div>
|
|
<a class="login" href="{% url "gestiojeux_auth:logout" %}?next={{ request.get_full_path }}"><i class="fa fa-sign-out" aria-hidden="true"></i></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>
|