<ol>
<% @election.ssd_result.ranked_candidates.each do |place| %>
- <li><%= h(place.collect {|c| @names[c].capitalize}.join( " <em>and</em> " )) %>
+ <li><%= h(place.collect {|c| @names[c].capitalize}.join( " and " )) %>
<%= "<strong>(TIE)</strong>" if place.length > 1 %></li>
<% end %>
</ol>
<% else %>
<ul>
<% for election in @current_elections %>
- <li><%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %> (ends in <em><%=
- distance_of_time_in_words Time.now, election.enddate %></em>)</li>
+ <li><%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %>
+ <% if Time.now > election.enddate %>
+ (election over)
+ <% else %>
+ (ends in <em><%= distance_of_time_in_words Time.now, election.enddate %></em>)</li>
+ <% end %>
<% end %>
</ul>
<% end %>
<div id="header">
<div id="top-bar">
<% if session[:user]%>
- <%= link_to User.find(session[:user]).login.dowcase,
+ <%= link_to User.find(session[:user]).login.downcase,
:controller => "account",
:action => "summary", :id => session[:user][:id] %>
<%= link_to( 'log out', :controller => 'account',