X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/4ab69ea7afaeff96714961139e7c696e7c7141ab..4e7a42adf9f2cb9319265596d73ed10d978e5f81:/app/views/quickvote/_pref_table.rhtml?ds=inline
diff --git a/app/views/quickvote/_pref_table.rhtml b/app/views/quickvote/_pref_table.rhtml
index 4576a0f..a3ba63d 100644
--- a/app/views/quickvote/_pref_table.rhtml
+++ b/app/views/quickvote/_pref_table.rhtml
@@ -9,17 +9,19 @@
|
<% candidates.each do |candidate| -%>
- <%= names[candidate] -%> |
- <% end -%>
+ <%=h names[candidate] -%> |
+ <% end -%>
+
+
<% candidates.each do |winner| -%>
- <%= names[winner] %> |
+ <%=h names[winner] %> |
<% candidates.each do |loser| -%>
<% if winner == loser -%>
-- |
<% else %>
<% wins = @election.condorcet_result.matrix[winner][loser]%>
- <%= wins %>
+ <%=h wins %>
<%= sparkline_tag [(wins.to_f/voters.to_f)*100.0], :type => 'pie',
:diameter => 25, :share_color => '#74ce00' %>
|
@@ -27,4 +29,4 @@
<% end -%>
<% end -%>
-
+