Both quickvotes and full-size elections use the same partial in views/voter
[selectricity] / app / views / quickvote / _pref_tables.rhtml
index 66e0cbf2df1fbf7870581ca6ed849b66db2c7f21..18e5aa38f81f3cc5d91aa23c76f4d4063fbb585f 100644 (file)
@@ -4,12 +4,11 @@
 <% 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-->
-<table class="voterbox">
+<table class="preftable">
   <tr>
-       <td> </td>
+       <td></td>
        <% candidates.each do |candidate| -%>
          <th><%=h names[candidate] -%></th>
   <% end -%>
@@ -34,7 +33,7 @@
 </table>
 
 <!-- This table generates a margin of victory -->
-<table class="voterbox">
+<table class="preftable">
   <% candidates.each do |victor| %>
   <tr>
     <th><%=h names[victor] %></th>
@@ -46,9 +45,8 @@
                <% else -%>
                  (<%= margin%>)
                <% end -%>
-                 </td>
+       </td>
        <% end -%>
   </tr>
   <% end -%>
 </table>
-

Benjamin Mako Hill || Want to submit a patch?