Added a method, views, and corresponding route so that a user can track the
[selectricity-live] / app / views / quickvote / my_quickvotes.rhtml
diff --git a/app/views/quickvote/my_quickvotes.rhtml b/app/views/quickvote/my_quickvotes.rhtml
new file mode 100644 (file)
index 0000000..546cb24
--- /dev/null
@@ -0,0 +1,19 @@
+<table class="voterbox">
+  <tr>
+  <% ["Name", "Start Date", "End Date", "Description"].each do |column| %>
+       <th><%= column %></th>
+  <% end -%>
+  </tr>
+
+  <% @myqvs.each do |quickvote| %>
+  <tr>
+       <td>
+       <%= link_to "#{quickvote.name}",
+          quickaction_url( :ident => quickvote.name, :action => 'results' ) %>
+       </td>
+    <td><%= quickvote.startdate.strftime("%x") %></td>
+    <td><%= quickvote.enddate.strftime("%x") %></td>
+       <td><%= quickvote.description %>
+  </tr>
+<% end %>
+</table>       
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?