aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poll_vote_list.html.j2
diff options
context:
space:
mode:
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>