]> projects.mako.cc - selectricity/blobdiff - app/views/election/show.rhtml
updated db schema
[selectricity] / app / views / election / show.rhtml
index ff116f47570a1a8f1cb1bab7e12b393a1b2744e8..2f628958434ab99c798dc75a8a0de69590c74ab5 100644 (file)
      (<%= votepassword_url(:urlpassword => "open." + @election.id.to_s) %>)</li>
 
 <% if @election.kiosk %>
-<li><%= (link_to ("Kiosk mode",
-          :controller => 'voter', :action => 'index', :election_id => @election.id, :kiosk => true)).to_s %>
-     (<%= votepassword_url(:urlpassword => "open." + @election.id.to_s, :kiosk => true) %>)</li>
+<li><%= link_to("Kiosk mode",
+           kiosk_ready_url(:urlpassword => "open." + @election.id.to_s,
+                           :kiosk => true)) %>
+        (<%= kiosk_ready_url(:urlpassword => "open." + @election.id.to_s, :kiosk => true) %>)
   <% end %>
 </ul>
 <% end -%>

Benjamin Mako Hill || Want to submit a patch?