aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to '')
-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