Add navbar link to admin for superusers.
This commit is contained in:
parent
ac33be0a07
commit
1d6cb59293
|
@ -26,6 +26,9 @@
|
||||||
<a class="nav-item nav-link" href="{% url 'attendance' %}">Attendance</a>
|
<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-item nav-link" href="{% url 'bank' %}">Bank</a>
|
||||||
<!--<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">DKP</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>
|
</div>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<span class="navbar-text">Logged in as <strong>{{ user.username }}</strong></span>
|
<span class="navbar-text">Logged in as <strong>{{ user.username }}</strong></span>
|
||||||
|
|
Loading…
Reference in a new issue