]> projects.mako.cc - selectricity/blobdiff - app/views/embed/full_vote.rhtml
Suppress description of voter-verifiability unless election is verifiable.
[selectricity] / app / views / embed / full_vote.rhtml
index 4eca8c4f4320e598f6b00573ff820e7fc9218c79..919b442c34af6fb88a8b3c7235149ac8f56c602a 100644 (file)
@@ -1,14 +1,8 @@
-<head>
-<%javascript_include_tag :defaults %>
-<%if @top_bar %>
-<script type="text/javascript">
-
-document.getElementById("header").style.backgroundImage="<%=url_for @top_bar.public_filename%>"
-
-</script>
-<% end %>
-</head>
-<div id="header">
+<div id="header" style="background-image:url(<%if @top_bar%>
+                                               <%=url_for @top_bar.public_filename%>)
+                                               <% else %>
+                                               /images/embed_basic_bg.png)
+                                               <% end %>">
 <%= link_to '<img id="header_icon" src="/images/embed_header_icon.png" />',
             {:controller => 'front'}, {:target => "_parent"} %><h2>Vote Now</h2>
 </div>
 <%= link_to '<img id="header_icon" src="/images/embed_header_icon.png" />',
             {:controller => 'front'}, {:target => "_parent"} %><h2>Vote Now</h2>
 </div>

Benjamin Mako Hill || Want to submit a patch?