1 <% if @current_elections.length < 1 %>
2 <p><em>You have not created any elections.</em></p>
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 %>
10 (ends in <em><%= distance_of_time_in_words Time.now, election.enddate %></em>)</li>
16 <p><%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.</p>