From 5c64529e77f150f8b83930f17e792b2cb8e38a87 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 29 Feb 2024 21:10:43 +0200 Subject: Add whole day mode, various improvements --- templates/poll_vote_table.html.j2 | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'templates/poll_vote_table.html.j2') diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2 index cfa336a..97fcac5 100644 --- a/templates/poll_vote_table.html.j2 +++ b/templates/poll_vote_table.html.j2 @@ -3,25 +3,7 @@ {% for choice in choices %} - {{ choice.start_datetime.strftime("%a %d.%m") }} - - {% if now.year != choice.start_datetime.year %}.{{choice.start_datetime.year}}{% endif %} - - - {{ choice.start_datetime.strftime("%H:%M") }} - - - {% if not choice.ends_on_same_day() %} - - {{ choice.end_datetime.strftime("%a %d.%m") }} - - - {% if now.year != choice.end_datetime.year %}.{{choice.end_datetime.year}}{% endif %} - - {% endif %} - - {{ choice.end_datetime.strftime("%H:%M") }} - + {% include "poll_choice_datetime_range.html.j2" %} {{ choice.votes | length }} votes -- cgit v1.3