From ac2845b70d7e5a5ab0b9af0610910bc8e59a1fda Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 12 Nov 2024 15:53:42 +0100 Subject: add option to change to new css --- client/templatetags/app_filter.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'client') 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 -- cgit v1.2.1