first (mostly) working version of full elections.
[selectricity-live] / app / views / election / list.rhtml
diff --git a/app/views/election/list.rhtml b/app/views/election/list.rhtml
deleted file mode 100644 (file)
index 321bf46..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<% %>
-<h1>Listing elections</h1>
-
-<table cellpadding="10px">
-
-<% for election in @elections %>
-  <tr>
-    <td valign="top"><h2><%=h link_to election.name, :action => 'show', :id => election %></h2>
-        <p><strong>Description:</strong></p>
-       <blockquote><%=h election.description %></blockquote>
-       
-        <p><strong>Election Information:</strong></p>
-       <ul>
-          <li><%= election.voters.length %> registered voters</li>
-          <li><%= "<strong>Not</strong> " unless election.anonymous == 1 %>Anonymous</li>
-         <li>Starts <%= election.startdate %></li>
-         <li>Ends <%= election.enddate %></li>
-        </ul> 
-    </td>
-    <td valign="top">
-        <p><strong>Candidates:</strong></p>
-       <% @election = election %><%= render :partial => 'candidate_list', :id => election.id %>
-    </td>
-    <td valign="top">
-        <%= link_to 'Destroy', { :action => 'destroy', :id => election }, :confirm => 'Are you sure?' %></td>
-  </tr>
-<% end %>
-</table>
-
-<%= link_to 'Previous page', { :page => @election_pages.current.previous } if @election_pages.current.previous %>
-<%= link_to 'Next page', { :page => @election_pages.current.next } if @election_pages.current.next %> 
-
-<br />
-
-<%= link_to 'New election', :action => 'new' %>

Benjamin Mako Hill || Want to submit a patch?