X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/560828ebdd364de4ca09d61764f19215a9e29e59..dc7d60a0de460c72d292b43616eb97a8b34741c8:/app/views/elections/_winner_details.rhtml?ds=inline diff --git a/app/views/elections/_winner_details.rhtml b/app/views/elections/_winner_details.rhtml new file mode 100644 index 0000000..0903952 --- /dev/null +++ b/app/views/elections/_winner_details.rhtml @@ -0,0 +1,28 @@ +<% %> +
The matrix listing the number of times that any candidate was +preferred to any other candidates is listed here:
+ ++<% for candidate in @election.candidates.sort %> + | <%= candidate.name %> | +<% end %> +
---|---|
<%= cand1.name %> | + <% for cand2 in @election.candidates.sort %> ++ <% if cand1 == cand2 %> + N/A + <% next %> + <% else %> + <%= @voteobj.votes[cand1.id][cand2.id] %> + <% end %> + | + <% end %> +