В шапку добавлена ссылку на админку

This commit is contained in:
2022-04-21 18:40:24 +03:00
parent 486d7e203e
commit 3ff2411c22
2 changed files with 12 additions and 5 deletions

View File

@@ -35,6 +35,9 @@
{{ user.username }}
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdownMenuLink">
{% if user.is_superuser %}
<li><a class="dropdown-item" href="{% url 'admin:index' %}">{% trans "Admin page" %}</a></li>
{% endif %}
<li><a class="dropdown-item" href="{% url 'account_email' %}">{% trans "Change E-mail" %}</a></li>
<li><a class="dropdown-item" href="{% url 'account_logout' %}">{% trans "Sign Out" %}</a></li>
</ul>