aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poll_vote_list.html.j2
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-02-29 22:04:55 +0200
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commit3620ac2671651eb096e49845e2ef500918e90d2a (patch)
tree20d36d20b39fe02f501513a2241b5636f672d8ac /templates/poll_vote_list.html.j2
parent5c64529e77f150f8b83930f17e792b2cb8e38a87 (diff)
Fix list view voters, change font
Diffstat (limited to 'templates/poll_vote_list.html.j2')
-rw-r--r--templates/poll_vote_list.html.j26
1 files changed, 4 insertions, 2 deletions
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 @@
<i>{{ choice.votes | length }} votes</i>
</span>
<div>
- {% 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 %}
</div>
</label>