Merge branch 'admin-tab' into 'master'

add admin tab in navbar

See merge request bestuur/kers!8
This commit is contained in:
fk 2020-07-27 17:35:36 +02:00
commit 1afe8e3b37

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 %}