<%= _("Winning candidate") %>
<%= _("The winning candidate is the candidate with the highest median vote (↓), called majority judgment.") %>
<% end %><%= "##{r}" %> <% value = settings.values.select { |e| e[:id] == c.mj.mj }.first %> <%= _(value[:label]) %>
| ↓ | <% end %>
| <% end %> <% end %> |
<%= _("See description") %> <% if r > 1 and c.mj.mj == @results.first.mj.mj %> <%= _("Analyze tiebreak") %> <% end %>
<%= _("This candidate and the winning candidate have the same majority judgment.") %>
<%= _("To break the tie, we remove the vote that corresponds to the majority judgment one-by-one until one candidate has a better majority judgment than the other.") %>
| ↓ | <% end %><% (1..b.n).each do |i| %> | ↓ | <% end %>
|---|---|---|
| <% end %> <% end %> | <% if a.mj < b.mj %><<% end %> <% if a.mj > b.mj %>><% end %> <% if a.mj == b.mj %>=<% end %> | <% i = 0 %> <% settings.values.each do |v| %> <% (1..b.count[v[:id]]).each do |r| %> <% i = i + 1 %><% end %> <% end %> |
| <%= _("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 %>