aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2023-01-29 16:40:05 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2023-01-29 16:40:07 +0100
commitffb862aa698270c598954ed1cdd3b0ab44541539 (patch)
treeffef8df0b9f7d54ccb65200d4047b115d3bbbfd7 /client
parentfix utf8 encoding of custom parameters (diff)
parentremove debug print of groups (diff)
downloadscout-subs-ffb862aa698270c598954ed1cdd3b0ab44541539.tar.gz
scout-subs-ffb862aa698270c598954ed1cdd3b0ab44541539.zip
Merge branch 'dev'
Diffstat (limited to '')
-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