X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/45532efec547148def34ac29a1ea1c9652420d37..5901217a8893619fbdb02d540c08390f92eae368:/app/views/election/list.rhtml diff --git a/app/views/election/list.rhtml b/app/views/election/list.rhtml deleted file mode 100644 index 321bf46..0000000 --- a/app/views/election/list.rhtml +++ /dev/null @@ -1,35 +0,0 @@ -<% %> -

Listing elections

- - - -<% for election in @elections %> - - - - - -<% end %> -

<%=h link_to election.name, :action => 'show', :id => election %>

-

Description:

-
<%=h election.description %>
- -

Election Information:

-
    -
  • <%= election.voters.length %> registered voters
  • -
  • <%= "Not " unless election.anonymous == 1 %>Anonymous
  • -
  • Starts <%= election.startdate %>
  • -
  • Ends <%= election.enddate %>
  • -
-
-

Candidates:

- <% @election = election %><%= render :partial => 'candidate_list', :id => election.id %> -
- <%= 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' %>