]> projects.mako.cc - selectricity/blobdiff - app/views/voter/full_vote.rhtml
referenced mailing list and gitorious
[selectricity] / app / views / voter / full_vote.rhtml
index 9d4f1d0675042eae322e577a5421c015e07f2941..80ea98676d01b72bb50066677ea6548a85f3fe89 100644 (file)
@@ -6,10 +6,12 @@
 <p><strong>Description:</strong></p>
 <p><%= @voter.election.description %></p>
 
+<% if @voter.election.authenticated? %>
 <div class="normal-header">
   <span class="header">Current Voter</span>
   <span class="subheader"></span>
 </div>
+<% end %>
 
 <p><strong><%= @voter.email %></strong></p>
 
@@ -30,12 +32,10 @@ vote.</p>
 
 <% @voter.election.candidates.each do |candidate| %>
   <% @current_candidate = candidate %>
-
   <div id="cand<%= @current_candidate.id %>">
-  <h3><%=h @current_candidate.name -%></h3>
-      <blockquote>
-      <%=h (@current_candidate.description) %>
-      </blockquote>
+  <h3><%= h @current_candidate.name %></h3>
+  <%= render :partial => 'election/candidate_box_info' %>
   </div>
     <% end %>
 </ul>
+

Benjamin Mako Hill || Want to submit a patch?