aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/poll_vote_list.html.j23
-rw-r--r--templates/poll_vote_table.html.j23
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/poll_vote_list.html.j2 b/templates/poll_vote_list.html.j2
index 47a682f..c62c102 100644
--- a/templates/poll_vote_list.html.j2
+++ b/templates/poll_vote_list.html.j2
@@ -1,13 +1,14 @@
<form action="/poll/{{ poll.id }}/vote" method="post">
<div class="vote-list">
{% for choice in choices %}
- <div>
+ <div {% if choice.id in most_voted_choice_ids %}class="most-voted"{% endif %}>
<label for="choice_{{ choice.id }}">
<input type="checkbox" name="choice_{{ choice.id }}" id="choice_{{ choice.id }}">
<strong>
{% include "poll_choice_datetime_range.html.j2" %}
</strong>
<span>
+ {% if choice.id in most_voted_choice_ids %}👑{% endif %}
<i>{{ choice.votes_with_value(1) | length }}&nbsp;votes</i>
</span>
<div>
diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2
index 440f2b7..a93ebfa 100644
--- a/templates/poll_vote_table.html.j2
+++ b/templates/poll_vote_table.html.j2
@@ -2,9 +2,10 @@
<tr>
<th></th>
{% for choice in choices %}
- <th>
+ <th {% if choice.id in most_voted_choice_ids %}class="most-voted"{% endif %}>
{% include "poll_choice_datetime_range.html.j2" %}
<span>
+ {% if choice.id in most_voted_choice_ids %}👑{% endif %}
<i>{{ choice.votes_with_value(1) | length }} votes</i>
</span>
</th>