Major integration of Courtland's design into the QuickVotes.
[selectricity-live] / app / views / quickvote / index.rhtml
index e7cac3d88f13de8d89892e233a4de5e192f7522e..a96fc41c609633882b514fb39db8d5067b31f936 100644 (file)
@@ -1,19 +1,12 @@
-<% %>
-
-<% if @voter.election.shortdesc %>
-  <h1><%= @voter.election.shortdesc %></h1>
-<% else %>
-  <h1>QuickVote</h1>
-<% end %>
-
-<% if @voter.election.longdesc %>
-  <p><strong>Description:</strong></p>
-  <blockquote><%= @voter.election.longdesc %></blockquote>
+<div id="page-title">
+       <span class="header">Quickvote</span>
+       <span class="subheader"><%=h @voter.election.description.capitalize %></span>
+</div>
 
-<h2>Vote</h2>
-<% end %>
+<div class="main-content">
 
 <% if @voter.voted? %>
+
   <p>You have already voted. You can:</p>
   
   <ul>
@@ -31,12 +24,12 @@ bottom</em>. When you are done, press confirm to record your vote.</p>
 <ol id="rankings-list">
   <% for ranking in @voter.vote.rankings %>
     <li class="moveable" id="ranking_<%= ranking.candidate.id %>">
-      <%= ranking.candidate.name.capitalize %></li>
+      <%=h ranking.candidate.name.capitalize %></li>
   <% end %>
 </ol>
 </div>
 
-<div class="clearbox"></div>
+<div class="clear-div"></div>
 
 <%= button_to "Confirm Vote", quickaction_url( :action => 'confirm', :ident => @voter.election.name)  %>
 
@@ -45,3 +38,4 @@ bottom</em>. When you are done, press confirm to record your vote.</p>
     :complete => visual_effect(:highlight, 'rankings-list') %> 
 
 <% end %>
+</div> <!-- end main-content -->

Benjamin Mako Hill || Want to submit a patch?