<%= @vote.description %>
| <%= _("Participant") %> | <% @vote.candidates.each do |candidate| %><%= candidate.name %> | <% end %>
|---|---|
| <%= user.email %> | <% @vote.candidates.each do |candidate| %> <% if rating = @vote.ratings.find { |rating| rating.user == user and rating.candidate == candidate } %> <% value = settings.values.select { |e| e[:id] == rating.value }.first %><%= value[:label] %> | <% end %> <% end %>
| <%= _("Rank") %> | <%= _("Candidate") %> | <%= _("Majority Judgment") %> | <%= _("Proponents") %> | <%= _("Opponents") %> |
| <%= i %> | <%= candidate.name %> | <% value = settings.values.select { |e| e[:id] == candidate.mj.mj }.first %><%= value[:label] %> | <%= candidate.mj.proponents %> | <%= candidate.mj.opponents %> |