Add navbar link to admin for superusers.

This commit is contained in:
Casper V. Kristensen 2020-06-01 18:21:53 +02:00
parent ac33be0a07
commit 1d6cb59293
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -26,6 +26,9 @@
<a class="nav-item nav-link" href="{% url 'attendance' %}">Attendance</a>
<a class="nav-item nav-link" href="{% url 'bank' %}">Bank</a>
<!--<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">DKP</a>-->
{% if request.user.is_staff %}
<a class="nav-item nav-link" href="{% url 'admin:index' %}">Admin</a>
{% endif %}
</div>
{% if user.is_authenticated %}
<span class="navbar-text">Logged in as <strong>{{ user.username }}</strong></span>