X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/4efa3e9bc47cc649205a399fde51ed7e61bef7f8..2ba40f97b78f529984ff26c7c7d61c91d213e7b0:/app/views/election/show.rhtml 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 @@ <% %>

Information On <%= @election.name %>

-

Overview <%= link_to "edit", :action => 'edit', :id => @election.id %>

- +

Election Overview

+

Description

-<%= @election.description %> +<%= h(@election.description) %>
-

Candidates <%= link_to "edit", :action => 'edit_candidates', :id => @election.id %>

+

Election End Date

+ +
+<%= @election.enddate %> +
+ +

<%= link_to "Edit election overview.", :action => 'edit', :id => @election.id %>

+ +

Candidates

+ +<% unless @election.candidates.empty? %> + <%= render :partial => 'candidate_list' %> +

<%= 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 %> -

Voters <%= link_to "edit", :action => 'edit_voters', :id => @election.id %>

+

Voters

-<%= render :partial => 'voter_list' %> +<% unless @election.voters.empty? %> + <%= render :partial => 'voter_list' %> +<% else %> +

There are currently no voters registered for this election. + <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id %>

+<% end %>