<%= @vote.title %>

<%= @vote.description %>

<%= _("All ratings") %>

<% @vote.candidates.each do |candidate| %> <% end %> <% @vote.ratings.collect { |rating| rating.user }.uniq.each do |user| %> <% @vote.candidates.each do |candidate| %> <% if rating = @vote.ratings.find { |rating| rating.user == user and rating.candidate == candidate } %> <% end %> <% end %> <% end %>
<%= _("Participant") %><%= candidate.name %>
<%= user.email %><%= settings.values.select { |e| e[:id] == rating.value }.first[:label] %>

<%= _("Results") %>

<% i = 0 %> <% @vote.candidates.sort { |a, b| a.mj <=> b.mj }.reverse.each do |candidate| %> <% i = i + 1 %> <% end %>
<%= _("Rank") %> <%= _("Candidate") %> <%= _("Majority Judgment") %> <%= _("Proponents") %> <%= _("Opponents") %>
<%= i %> <%= candidate.name %> <%= settings.values.select { |e| e[:id] == candidate.mj.mj }.first[:label] %> <%= candidate.mj.proponents %> <%= candidate.mj.opponents %>

<%= _("Organizers") %>

<% if @vote.users.exists?(current_user.id) %>

<%= _("Actions for organizers") %>

<%= _("Add") %>

<% end %>