From 3620ac2671651eb096e49845e2ef500918e90d2a Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 29 Feb 2024 22:04:55 +0200 Subject: Fix list view voters, change font --- templates/manage.html.j2 | 1 + templates/poll_vote_list.html.j2 | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/manage.html.j2 b/templates/manage.html.j2 index 4a5da8d..db7da0b 100644 --- a/templates/manage.html.j2 +++ b/templates/manage.html.j2 @@ -3,6 +3,7 @@ {% block content %}

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

+

{{ poll.pub_date_formatted_notz() }}.

Share this URL with your peers:
diff --git a/templates/poll_vote_list.html.j2 b/templates/poll_vote_list.html.j2 index 845356b..a9b2a48 100644 --- a/templates/poll_vote_list.html.j2 +++ b/templates/poll_vote_list.html.j2 @@ -10,8 +10,10 @@ {{ choice.votes | length }} votes

- {% if choice.votes | length != 0 %} - Voted by: {% for vote in choice.votes %}{{ vote.voter_name }}{% if not loop.last %}, {% endif %}{% endfor %} + {% if choice.votes_with_value(1) | length != 0 %} + Voted by: {% for vote in choice.votes_with_value(1) %} + {{ vote.voter_name }}{% if not loop.last %}, {% endif %} + {% endfor %} {% endif %}
-- cgit v1.3