From b6bc5c5794b4df182175da34e6b08298084c0324 Mon Sep 17 00:00:00 2001 From: Jan T Date: Wed, 28 Feb 2024 17:32:01 +0200 Subject: Initial commit --- templates/poll.html.j2 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/poll.html.j2 (limited to 'templates/poll.html.j2') diff --git a/templates/poll.html.j2 b/templates/poll.html.j2 new file mode 100644 index 0000000..e0ede1f --- /dev/null +++ b/templates/poll.html.j2 @@ -0,0 +1,34 @@ +{% extends "base.html.j2" %} + +{% block content %} + +

{{ poll.title }} by {{ poll.author_name }}

+{% if poll.description %} +

{{ poll.description }}

+{% endif %} + +{% if poll.choices | length == 0 %} +

No options available.

+{% else %} + +
+
+ + +
+
+ +
+ {% if display_mode == "table" %} + {% include "poll_vote_table.html.j2" %} + {% else %} + {% include "poll_vote_list.html.j2" %} + {% endif %} +
+{% endif %} + + +{% endblock %} -- cgit v1.3