Mostly worked on the candidate adding feature to include pictures and
[selectricity-live] / app / views / election / show.rhtml
1 <% %>
2 <h1>Information On <%= @election.name %></h1>
3
4 <h2>Election Overview</h2> 
5  
6 <p><strong>Description</strong></p>
7
8 <blockquote>
9 <%= h(@election.description) %>
10 </blockquote>
11
12 <p><strong>Election End Date</strong></p>
13
14 <blockquote>
15 <%= @election.enddate %>
16 </blockquote>
17
18 <p><%= link_to "Edit election overview.", :action => 'edit', :id => @election.id %></p>
19
20 <h2>Candidates</h2> 
21
22 <% unless @election.candidates.empty? %>
23   <%= render :partial => 'candidate_list' %>
24   <p><%= link_to "Add, remove, or edit candidates.", :action => 'edit_candidates', :id => @election.id %></p>
25 <% else %>
26   <p><em>There are currently no candidates registered for this election.
27   <%= link_to "Add some!", :action => 'edit_candidates', :id => @election.id %></em></p>
28
29 <% end %>
30
31 <h2>Voters</h2>
32
33 <% unless @election.voters.empty? %>
34   <%= render :partial => 'voter_list' %>
35 <% else %>
36   <p><em>There are currently no voters registered for this election.
37   <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id %></em></p>
38 <% end %>

Benjamin Mako Hill || Want to submit a patch?