X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/cc4532dee83d19baf79b35fadf7064b9b5c3948a..1660465f3e072cbddc19b19f7f8869affb0694c5:/app/views/elections/list.rhtml diff --git a/app/views/elections/list.rhtml b/app/views/elections/list.rhtml new file mode 100644 index 0000000..40e24b5 --- /dev/null +++ b/app/views/elections/list.rhtml @@ -0,0 +1,27 @@ +

Listing elections

+ + + + <% for column in Election.content_columns %> + + <% end %> + + +<% for election in @elections %> + + <% for column in Election.content_columns %> + + <% end %> + + + + +<% end %> +
<%= column.human_name %>
<%=h election.send(column.name) %><%= link_to 'Show', :action => 'show', :id => election %><%= link_to 'Edit', :action => 'edit', :id => election %><%= link_to 'Destroy', { :action => 'destroy', :id => election }, :confirm => 'Are you sure?' %>
+ +<%= 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 %> + +
+ +<%= link_to 'New election', :action => 'new' %>