]> projects.mako.cc - selectricity-live/commitdiff
Added a link to open elections off the election's 'show' page
author<jlsharps@mit.edu> <>
Mon, 31 Mar 2008 22:09:58 +0000 (18:09 -0400)
committer<jlsharps@mit.edu> <>
Mon, 31 Mar 2008 22:09:58 +0000 (18:09 -0400)
app/views/election/show.rhtml

index fe522aac6214b8ae11a925820da466ffc54d01cb..5a46af94a3008c55dbe29c05d81ca82578fd8543 100644 (file)
 
 </ul>
 
+<% unless @election.authenticated -%>
+<p><strong>Link</strong></p>
+<%= (link_to ("Go Vote!", 
+            :controller => 'voter', :action => 'index', :election_id => @election.id)).to_s %>
+<% end -%>
 
 <div class="normal-header">
   <span class="header">Candidates</span>

Benjamin Mako Hill || Want to submit a patch?