]> projects.mako.cc - selectricity/blob - app/views/front/_user_summary.rhtml
Added code to check for previously uploaded custom images and delete them, the newly...
[selectricity] / app / views / front / _user_summary.rhtml
1 <% if @current_elections.length < 1 %>
2   <p><em>You have not created any elections.</em></p>
3 <% else %>
4   <ul>
5   <% for election in @current_elections %>
6     <li><%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %>
7     <% if Time.now > election.enddate %>
8       (election over)
9     <% else %>
10       (ends in <em><%= distance_of_time_in_words Time.now, election.enddate %></em>)</li> 
11     <% end %>
12   <% end %>
13   </ul>
14 <% end %>
15
16 <p><%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.</p>
17

Benjamin Mako Hill || Want to submit a patch?