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

@ -66,9 +66,17 @@
<h2 class="mb-4"><%= _("Participants") + " (#{@vote.ratings.collect { |rating| rating.user }.uniq.count})" %></h2>
<ul class="mb-5">
<% @vote.ratings.collect { |rating| rating.user }.uniq.sort_by { |user| user.email }.each do |user| %>
<li><%= user.email %></li>
<% end %>
<% all_users_sorted.each do |user| %>
<li>
<% if @vote.ratings.collect { |rating| rating.user }.include?(user) %>
<span>
<% else %>
<span class="text-decoration-line-through">
<% end %>
<%= user.email %>
</span>
</li>
<% end %>
</ul>
<% if @vote.users.exists?(current_user.id) and @vote.expire_on.nil? %>