Skip to content

Commit dd11f63

Browse files
committed
add admin url nav for superusers
1 parent 42f45b3 commit dd11f63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/templates/layout/base.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ <h2>TheCollector</h2>
5656
<a href="{% url 'register' %}">Register</a>
5757
{% endif %}
5858
<a href="{% url 'about' %}">About</a>
59+
{% if user.is_superuser %}
60+
<a href="{% url 'admin:index' %}" style="color: brown;">Admin Panel</a>
61+
{% endif %}
5962
</nav>
6063
{% if user.is_authenticated %}
6164
<a href="{% url 'logout' %}" class="header__login"><svg xmlns="http://www.w3.org/2000/svg" width="512"

0 commit comments

Comments
 (0)