]> projects.mako.cc - selectricity/blobdiff - app/views/election/_candidate_line.rhtml
fixed rendering error with css
[selectricity] / app / views / election / _candidate_line.rhtml
old mode 100755 (executable)
new mode 100644 (file)
index 5145b88..e5bcf07
@@ -1,19 +1,19 @@
-<% -%>
 <div id="cand<%= @current_candidate.id %>">
-  <li><%= @current_candidate.name -%>
+  <li><%=h @current_candidate.name -%>
     <% if @show_details %>
       (<%= link_to_remote "Hide Details",
                          :update => "cand#{@current_candidate.id}",
-                         :url => { :action => :lessinfo_candidate, :id => @current_candidate.id } %>)
+                         :url => { :action => :lessinfo_candidate,
+                                      :id => @current_candidate.id } %>)
       <br />
       <blockquote>
-      <%= h(@current_candidate.description) %>
+      <%=(@current_candidate.description) %>
       </blockquote>
     <% else %>
       (<%= link_to_remote "Show Details",
                          :update => "cand#{@current_candidate.id}",
                          :url => { :action => :moreinfo_candidate,
-                        :id => @current_candidate.id } %>)
+                                              :id => @current_candidate.id } %>)
     <% end %>
   </li>
 </div>

Benjamin Mako Hill || Want to submit a patch?