projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Both quickvotes and full-size elections use the same partial in views/voter
[selectricity]
/
app
/
views
/
quickvote
/
_pref_tables.rhtml
diff --git
a/app/views/quickvote/_pref_tables.rhtml
b/app/views/quickvote/_pref_tables.rhtml
index 66e0cbf2df1fbf7870581ca6ed849b66db2c7f21..18e5aa38f81f3cc5d91aa23c76f4d4063fbb585f 100644
(file)
--- a/
app/views/quickvote/_pref_tables.rhtml
+++ b/
app/views/quickvote/_pref_tables.rhtml
@@
-4,12
+4,11
@@
<% victories = @election.condorcet_result.victories_and_ties %>
<% names = @election.names_by_id %>
<% victories = @election.condorcet_result.victories_and_ties %>
<% names = @election.names_by_id %>
-
<!-- This table shows how many times each choice was ranked above the other,
with percentages-->
<!-- This table shows how many times each choice was ranked above the other,
with percentages-->
-<table class="
voterbox
">
+<table class="
preftable
">
<tr>
<tr>
- <td>
</td>
+ <td></td>
<% candidates.each do |candidate| -%>
<th><%=h names[candidate] -%></th>
<% end -%>
<% candidates.each do |candidate| -%>
<th><%=h names[candidate] -%></th>
<% end -%>
@@
-34,7
+33,7
@@
</table>
<!-- This table generates a margin of victory -->
</table>
<!-- This table generates a margin of victory -->
-<table class="
voterbox
">
+<table class="
preftable
">
<% candidates.each do |victor| %>
<tr>
<th><%=h names[victor] %></th>
<% candidates.each do |victor| %>
<tr>
<th><%=h names[victor] %></th>
@@
-46,9
+45,8
@@
<% else -%>
(<%= margin%>)
<% end -%>
<% else -%>
(<%= margin%>)
<% end -%>
-
</td>
+ </td>
<% end -%>
</tr>
<% end -%>
</table>
<% end -%>
</tr>
<% end -%>
</table>
-
Benjamin Mako Hill
||
Want to submit a patch?