From 1eea185d337eadd7a5309a707d8f0c5cd0d85d9c Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 7 May 2023 21:03:25 +0100 Subject: Added some charts --- templates/template.html.j2 | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'templates/template.html.j2') diff --git a/templates/template.html.j2 b/templates/template.html.j2 index 4c08853..72cf520 100644 --- a/templates/template.html.j2 +++ b/templates/template.html.j2 @@ -34,7 +34,39 @@ -

Filter...

+ {% if filters is defined %} +

Filters

+
+ {% for filter_name, filter_content in filters.items() %} +
{{ filter_name }}
+ {% if len(filter_content["options"]) > 5 %} + +
+ {% endif %} + {% for option in filter_content["options"] %} + {% if filter_name in current_filters.keys() %} + {% if current_filters[filter_name] == option %} + + {% else %} + + {% endif %} + {% else %} + + {% endif %} +
+ {% endfor %} + {% if len(filter_content["default"]) < 2 %} + +
+ {% endif %} + {% if len(filter_content["options"]) > 5 %} +
+ {% endif %} + {% endfor %} +
+ {% endif %}
-- cgit v1.2.3