aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/registration/base_client.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/registration/base_client.html b/templates/registration/base_client.html
index c4e62b6..09e7dd0 100644
--- a/templates/registration/base_client.html
+++ b/templates/registration/base_client.html
@@ -109,13 +109,17 @@
{% block breadcrumb %}
{% endblock %}
<ul class="right">
- <li class="userswitcher" data-target='userswitcher'><a href="#">{{ user.username }}</a></li>
+ {% if user.is_staff or perms.client.staff %}
+ <li class="userswitcher" data-target='userswitcher'><a href="#">{{ user.username }}<i class="right material-icons">supervisor_account</i></a></li>
+ {% else %}
+ <li class="userswitcher" data-target='userswitcher'><a href="#">{{ user.username }}</a></li>
+ {% endif %}
<ul id='userswitcher' class='dropdown-content'>
<li><a href="{% url 'personal' %}"><i class="material-icons">person</i>Gestione account</a></li>
{% if user.is_staff or perms.client.staff %}
<li><a href="{% url 'server' %}"><i class="material-icons">build</i>Pannello Admin</a></li>
{% endif %}
- {% if group_view %}
+ {% if user|user_list %}
<li><a class="modal-trigger" href="#modal_capi"><i class="material-icons">list</i>Lista documenti</a></li>
{% endif %}