move admin panel to user drop down

This commit is contained in:
Robert Einsle 2019-02-04 07:57:03 +01:00
parent 6385689b10
commit d3c886940b

View File

@ -36,11 +36,6 @@
<li class="nav-item">
<a class="nav-link" href="{% url 'billard:location_index' %}">Standorte</a>
</li>
{% if user.is_superuser %}
<li class="nav-item">
<a class="nav-link" href="/admin">Administration</a>
</li>
{% endif %}
</ul>
{% if user.is_authenticated %}
<ul class="navbar-nav ml-auto">
@ -51,7 +46,11 @@
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userMenu">
<a class="dropdown-item" href="{% url 'billard:my_account' %}">My account</a>
<a class="disabled dropdown-item" href="#">{% settings_value "PRODUCT_VERSION" %}</a>
{% if user.is_superuser %}
<a class="dropdown-item" href="/admin">Administration</a>
{% endif %}
<a class="disabled dropdown-item"
href="#">{% settings_value "PRODUCT_VERSION" %}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url 'logout' %}">Log out</a>
</div>