fixed up the results page in a number of ways
[selectricity] / app / views / quickvote / _pref_tables.rhtml
index 588ec22d8aa88e19883fc1cda0a08c06bb6edbcb..b9d41ececcb6b2738dbc639ddf4785956eca4915 100644 (file)
@@ -4,12 +4,15 @@
 <% victories = @election.ssd_result.victories_and_ties %>
 
 <% if candidates.size <= 7 -%>
+
+<p>Each number in the table below shows how many times the candidate on
+the left beat the matching candidate on the top. The winner is on the
+top of the left column.</p>
+
 <!-- This table shows how many times each choice was ranked above the other, 
        with percentages-->
+<div class="result_table">
 <table class="preftable">
-<caption>Each number shows how many times the candidate on the left beat the 
-matching candidate on the top. The Schulze/Condorcet winner is on the top of the 
-left column.</caption>
   <tr>
        <td></td>
        <% candidates.each do |candidate| -%>
@@ -34,12 +37,15 @@ left column.</caption>
  </tr>
 <% end -%>
 </table>
-<br />
+</div>
 <!-- This table generates a margin of victory -->
+
+<p>A simplification of the above data. The winner is on the left; each
+cell names the defeated candidate and the magnitude of the victory in
+parenthesis.</p>
+
+<div class="result_table">
 <table class="preftable">
-<caption>A simplification of the above data. The winner is on the left; each cell
-names the defeated candidate and the magnitude of the victory in parenthesis.
-</caption>
   <% candidates.each do |victor| %>
   <tr>
     <th><%=h @names[victor] %></th>
@@ -56,5 +62,6 @@ names the defeated candidate and the magnitude of the victory in parenthesis.
   </tr>
   <% end -%>
 </table>
+</div>
 <% end -%>
 

Benjamin Mako Hill || Want to submit a patch?