]> projects.mako.cc - selectricity-live/blobdiff - app/views/election/show.rhtml
QuickVotes are now displayed in the control panel list - and you can click on
[selectricity-live] / app / views / election / show.rhtml
index 87529d18c1c41633fcff130b10e5b83c0b881534..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>
 <p>To embed your election, copy and paste the following code into your
 homepage:</p>
 
-<blockquote>
-<tt><pre><%= h("<iframe src='") + votepassword_url(:urlpassword => "open." + @election.id.to_s) + h("'") + "<br />" + h(" width='330px' height='370px'></iframe>") %></pre></tt>
-</blockquote>
+<pre><%= h("<iframe src='") + votepassword_url(:urlpassword => "open." + @election.id.to_s, :embed => "true") + h("' width='330px' height='370px'>") %>
+<%= h("</iframe>") %></pre>
 
 <% end %>

Benjamin Mako Hill || Want to submit a patch?