add admin tab in navbar

This commit is contained in:
Francis 2020-07-26 22:45:43 +02:00
parent d49df3debf
commit b2f03f4753
No known key found for this signature in database
GPG key ID: 071BEA4C2B10077C

View file

@ -32,15 +32,22 @@
Hallo, {{ user.username }}
</span>
</li>
{% if user.is_staff or user.is_superuser %}
<li>
<a href="{% url 'admin:index' %}">
Admininterface
</a>
</li>
{% endif %}
<li>
<a href="{% url 'users:logout' %}">
Log out
Afmelden
</a>
</li>
{% else %}
<li>
<a href="{% url 'oauth:login' %}">
Log in
Inloggen
</a>
</li>
{% endif %}