2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Add link to admin page

- Only if user is admin!
This commit is contained in:
Oliver
2018-05-08 23:14:07 +10:00
parent 3cf45f5ed3
commit 84efaba920
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,9 @@
<li class='dropdown'>
<a class='dropdown-toggle' data-toggle='dropdown' href="#"><span class="glyphicon glyphicon-user"></span>{{ user.get_username }}</a>
<ul class='dropdown-menu'>
{% if user.is_staff %}
<li><a href="/admin/">Admin</a></li>
{% endif %}
<li><a href="{% url 'logout' %}">Logout</a></li>
</ul>
</li>