aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--version.txt2
2 files changed, 3 insertions, 1 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>
diff --git a/version.txt b/version.txt
index 6b1314e..95245cf 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.5
-rev=13
+rev=14