% candidates = @election.candidates.sort.collect {|candidate| candidate.id} -%>
<% candidates.each do |candidate| -%> | <%= candidate -%> | <% end -%> <% candidates.each do |winner| -%>|
---|---|---|
<%= winner %> | <% candidates.each do |loser| -%> <% if winner == loser -%>-- | <% else %><%= @election.condorcet_result.matrix[winner][loser] %> | <% end -%> <% end -%>