aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-12-29 12:45:35 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-12-29 12:45:36 +0100
commit45cadf46d65e5d8f0620a8412bbc90cf23ab5c74 (patch)
treeb03074797dff9fb509d4845c9ac6c4068087f9ce /client
parentMerge branch 'master' into dev (diff)
downloadscout-subs-45cadf46d65e5d8f0620a8412bbc90cf23ab5c74.tar.gz
scout-subs-45cadf46d65e5d8f0620a8412bbc90cf23ab5c74.zip
superuser mode
Diffstat (limited to 'client')
-rw-r--r--client/templatetags/app_filter.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/templatetags/app_filter.py b/client/templatetags/app_filter.py
index aa93cf2..335827e 100644
--- a/client/templatetags/app_filter.py
+++ b/client/templatetags/app_filter.py
@@ -89,4 +89,11 @@ def user_list(user):
else:
gr = GroupSettings.objects.filter(group__in=groups).filter(view_documents=True)
- return (len(gr) != 0) \ No newline at end of file
+ return (len(gr) != 0)
+
+@register.filter(name="su_color")
+def su_color(status):
+ if status:
+ return "green"
+ else:
+ return "red lighten-1" \ No newline at end of file