+<% if @election.done? %>
+<div id="status">Election is finished. <%= link_to "View results",
+ :action => 'detailed_results', :id => @election.id %>.</div>
+
+<% elsif (@election.active? && @election.viewable?) %>
+ <div id="status">The creator of this election has decided that the results
+ should be viewable while the election is in progress.
+ <%if @election.voters.empty? %>
+ However, no one has voted yet.
+ <% else %>
+ <%= link_to "View results", :action => 'detailed_results',
+ :id => @election.id %>.
+ <% end %>
+ </div>
+<% elsif @election.active? %>