diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-06-04 13:13:23 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-12-21 19:43:13 +0200 |
| commit | 76abb7cada4e656934336f36c2044062da8f427c (patch) | |
| tree | 6d594f464aeb959f1123d8f944cfa09d6ae79c87 /templates/poll_vote_table.html.j2 | |
| parent | bbdc769b707cf071ebfddd70bff511ade58bfc08 (diff) | |
Highlight most voted options
Diffstat (limited to 'templates/poll_vote_table.html.j2')
| -rw-r--r-- | templates/poll_vote_table.html.j2 | 3 |
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> |
