Merge branch 'admin-tab' into 'master'
add admin tab in navbar See merge request bestuur/kers!8
This commit is contained in:
commit
1afe8e3b37
1 changed files with 9 additions and 2 deletions
|
@ -32,15 +32,22 @@
|
||||||
Hallo, {{ user.username }}
|
Hallo, {{ user.username }}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
{% if user.is_staff or user.is_superuser %}
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'admin:index' %}">
|
||||||
|
Admininterface
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'users:logout' %}">
|
<a href="{% url 'users:logout' %}">
|
||||||
Log out
|
Afmelden
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'oauth:login' %}">
|
<a href="{% url 'oauth:login' %}">
|
||||||
Log in
|
Inloggen
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue