aboutsummaryrefslogtreecommitdiffstats
path: root/templates/registration/base_client.html
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-04-27 22:33:29 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-04-27 22:33:29 +0200
commit12e3c33c27d581e4ed277d00e242f4e6670d3732 (patch)
tree0507a83d8ac97d14d3e154e8a29b5cadd013c9a9 /templates/registration/base_client.html
parentcheck if capi userlist enabled with an app_filter (diff)
downloadscout-subs-12e3c33c27d581e4ed277d00e242f4e6670d3732.tar.gz
scout-subs-12e3c33c27d581e4ed277d00e242f4e6670d3732.zip
add icons on the username based on role
Diffstat (limited to '')
-rw-r--r--templates/registration/base_client.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/registration/base_client.html b/templates/registration/base_client.html
index 09e7dd0..b4781ce 100644
--- a/templates/registration/base_client.html
+++ b/templates/registration/base_client.html
@@ -110,6 +110,8 @@
{% endblock %}
<ul class="right">
{% if user.is_staff or perms.client.staff %}
+ <li class="userswitcher" data-target='userswitcher'><a href="#">{{ user.username }}<i class="right material-icons">shield</i></a></li>
+ {% elif "capi" in user|user_groups%}
<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>