]> projects.mako.cc - selectricity/blobdiff - app/views/election/show.rhtml
Added a check to make sure a voter has a valid email address before attempting ot...
[selectricity] / 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?