X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/25862916f9c97687bc1b30299fd9d544b0ba62ac..6ea52ab5c0c29ce60f5a8ee2747eb52f47d5b884:/app/views/quickvote/_pref_table.rhtml
diff --git a/app/views/quickvote/_pref_table.rhtml b/app/views/quickvote/_pref_table.rhtml
index 4576a0f..1d3cdf3 100644
--- a/app/views/quickvote/_pref_table.rhtml
+++ b/app/views/quickvote/_pref_table.rhtml
@@ -9,17 +9,17 @@
|
<% candidates.each do |candidate| -%>
- <%= names[candidate] -%> |
+ <%=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' %>
|