aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2024-11-12 15:53:42 +0100
committerAndrea Lepori <aleporia@gmail.com>2024-11-12 15:53:42 +0100
commitac2845b70d7e5a5ab0b9af0610910bc8e59a1fda (patch)
tree10fec1166a85538b26942efb2471faef4575cdf9 /client
parentadd new materialize v2 (diff)
downloadscout-subs-ac2845b70d7e5a5ab0b9af0610910bc8e59a1fda.tar.gz
scout-subs-ac2845b70d7e5a5ab0b9af0610910bc8e59a1fda.zip
add option to change to new css
Diffstat (limited to 'client')
-rw-r--r--client/templatetags/app_filter.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/client/templatetags/app_filter.py b/client/templatetags/app_filter.py
index 9fbcff0..2b75822 100644
--- a/client/templatetags/app_filter.py
+++ b/client/templatetags/app_filter.py
@@ -95,4 +95,18 @@ def su_color(status):
if status:
return "green"
else:
- return "red lighten-1" \ No newline at end of file
+ return "red lighten-1"
+
+@register.filter(name="materialize_css")
+def materialize_css(new_version):
+ if new_version:
+ return "materialize_new.min.css"
+ else:
+ return "materialize.min.css"
+
+@register.filter(name="materialize_js")
+def materialize_js(new_version):
+ if new_version:
+ return "materialize_new.min.js"
+ else:
+ return "materialize.min.js" \ No newline at end of file