Corrected typo on the 'show' page for election information.
[selectricity] / app / views / election / show.rhtml
index 04c71a62269e9c451b15f8fc24f99a25e0d3bb4e..5de6081b298b5d8c89fa0539c4360498d158ec19 100644 (file)
@@ -2,19 +2,19 @@
   <span class="header">Election Overview</span>
   <span class="subheader"></span>
 </div>
-
-<% if @election.done? %>
+<% if @election.enddate < Time.now %>
 <div id="status">Election is finished. <%= link_to "View results",
-  :action => 'detailed_results', :id => @election.id %>.</div>
+       :controller => 'voter', :action => 'index', 
+       :election_id => @election.id %>.</div>
 
-<% elsif (@election.active? && @election.viewable?) %>
+<% elsif (@election.active? && @election.early_results? ) %>
   <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 %>.
+       <%= link_to "View results", :controller => 'voter', :action => 'results', 
+               :id => "open" %>.
     <% end %>
   </div>
 <% elsif @election.active? %>
@@ -45,7 +45,7 @@
 <ul> <li>Elections will end at <strong><%= @election.enddate
 %></strong>.</li> <li>Elections results <strong><% if
 @election.early_results %>will be<% else %>will not be<% end
-%></strong> will be visible while election is in progress.</li>
+%></strong> visible while election is in progress.</li>
 
 <% if @election.embeddable %>
 <li>Elections <strong>will be</strong> embeddable.</li>

Benjamin Mako Hill || Want to submit a patch?