% if @current_elections.length < 1 %>
You have not created any elections.
<% else %>
<% for election in @current_elections %>
- <%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %> (ends in <%=
distance_of_time_in_words Time.now, election.enddate %>)
<% end %>
<% end %>