]> projects.mako.cc - selectricity-live/blobdiff - app/views/quickvote/_approval_table.rhtml
Added the Gruff library to the lib/ directory of the the rails folder, and the
[selectricity-live] / app / views / quickvote / _approval_table.rhtml
diff --git a/app/views/quickvote/_approval_table.rhtml b/app/views/quickvote/_approval_table.rhtml
new file mode 100644 (file)
index 0000000..85185ee
--- /dev/null
@@ -0,0 +1,15 @@
+<table class="preftable">
+  <tr>
+       <td>Candidate</td>
+         <% @election.approval_result.points.keys.sort.each do |candidate| %>
+               <th><%=h @names[candidate] %></th>
+         <% end -%>
+  </tr>
+       
+  <tr>
+       <td> Times Approved </td>
+       <% @election.approval_result.points.values.sort.each do |points| %>
+               <td><%= points %></td>
+       <% end -%>
+  </tr>
+</table>
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?