aboutsummaryrefslogtreecommitdiffstats
path: root/templates/poll_vote_table.html.j2
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-06-04 13:13:23 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commit76abb7cada4e656934336f36c2044062da8f427c (patch)
tree6d594f464aeb959f1123d8f944cfa09d6ae79c87 /templates/poll_vote_table.html.j2
parentbbdc769b707cf071ebfddd70bff511ade58bfc08 (diff)
Highlight most voted options
Diffstat (limited to 'templates/poll_vote_table.html.j2')
-rw-r--r--templates/poll_vote_table.html.j23
1 files changed, 2 insertions, 1 deletions
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>