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 %> (ends in <em><%=
7 distance_of_time_in_words Time.now, election.enddate %></em>)</li>
12 <p><%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.</p>