]> projects.mako.cc - selectricity/blobdiff - app/views/elections/list.rhtml
Renamed "elections" controller to "election."
[selectricity] / app / views / elections / list.rhtml
diff --git a/app/views/elections/list.rhtml b/app/views/elections/list.rhtml
deleted file mode 100644 (file)
index 40e24b5..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<h1>Listing elections</h1>
-
-<table>
-  <tr>
-  <% for column in Election.content_columns %>
-    <th><%= column.human_name %></th>
-  <% end %>
-  </tr>
-  
-<% for election in @elections %>
-  <tr>
-  <% for column in Election.content_columns %>
-    <td><%=h election.send(column.name) %></td>
-  <% end %>
-    <td><%= link_to 'Show', :action => 'show', :id => election %></td>
-    <td><%= link_to 'Edit', :action => 'edit', :id => election %></td>
-    <td><%= 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?