X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/4efa3e9bc47cc649205a399fde51ed7e61bef7f8..2ba40f97b78f529984ff26c7c7d61c91d213e7b0:/app/views/election/show.rhtml?ds=sidebyside diff --git a/app/views/election/show.rhtml b/app/views/election/show.rhtml index 954e480..f389059 100644 --- a/app/views/election/show.rhtml +++ b/app/views/election/show.rhtml @@ -1,18 +1,38 @@ <% %>
Description
-<%= @election.description %> +<%= h(@election.description) %>-
Election End Date
+ ++<%= @election.enddate %> ++ +
<%= link_to "Edit election overview.", :action => 'edit', :id => @election.id %>
+ +<%= link_to "Add, remove, or edit candidates.", :action => 'edit_candidates', :id => @election.id %>
+<% else %> +There are currently no candidates registered for this election. + <%= link_to "Add some!", :action => 'edit_candidates', :id => @election.id %>
-<%= render :partial => 'candidate_list' %> +<% end %> -There are currently no voters registered for this election. + <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id %>
+<% end %>