]> projects.mako.cc - selectricity-live/blob - app/views/site/_user_summary.rhtml
The other election methods will now display the winner they elected in their own
[selectricity-live] / app / views / site / _user_summary.rhtml
1 <% if @current_elections.length < 1 %>
2   <em>You have not created any elections.</em>
3 <% else %>
4   <ul>
5   <% for election in @current_elections %>
6     <li><%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %> (ends in <em><%=
7     distance_of_time_in_words Time.now, election.enddate %></em>)</li> 
8   <% end %>
9   </ul>
10 <% end %>
11
12 <p><%= link_to "Create a new election", :controller => 'election', :action => 'new' %></p>
13 <p></p>
14

Benjamin Mako Hill || Want to submit a patch?