List users who haven't voted

Closes #3
This commit is contained in:
ricola 2026-03-23 18:58:30 -06:00
parent 185e47c5ff
commit 125d2714b0
2 changed files with 16 additions and 4 deletions

View file

@ -175,7 +175,7 @@
<% end %>
</tr>
</thead>
<% @vote.ratings.collect { |rating| rating.user }.uniq.sort_by { |user| user.email }.each do |user| %>
<% all_users_sorted.each do |user| %>
<tr>
<td><%= user.email %></td>
<% @vote.candidates.each do |candidate| %>
@ -183,6 +183,10 @@
<td class="h5">
<%= erb :rating_badge, :locals => { :value => settings.values.select { |e| e[:id] == rating.value }.first } %>
</td>
<% else %>
<td class="h5">
<span class="badge bg-secondary"><%= _("Not voted") %></span>
</td>
<% end %>
<% end %>
</tr>