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/plot.html.j2 | 8 ++++++++ templates/template.html.j2 | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 templates/plot.html.j2 (limited to 'templates') diff --git a/templates/plot.html.j2 b/templates/plot.html.j2 new file mode 100644 index 0000000..91a3a36 --- /dev/null +++ b/templates/plot.html.j2 @@ -0,0 +1,8 @@ +{% extends "template.html.j2" %} +{% block content %} +
+
+
+

{{ alt }}

+
+{% endblock %} \ No newline at end of file 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