<% candidates = @election.ssd_result.ranked_candidates.flatten -%>
<% if candidates.size <= 7 -%>
- <%= render_partial 'common/pref_tables' %>
+ <%= render :partial => 'common/pref_tables' %>
<% else %>
There are too many candidates in your elections to show the result
tables.
- <% if not @election.type == QuickVote %>
- <%= link_to "Click here", { :action => 'pref_tables', :id => @voter.password }, :popup => [] %>
+ <% if not @election.class == QuickVote %>
+ <%= link_to "Click here", { :action => 'pref_tables', :id => @election.id }, :popup => [] %>
to view details.
<% end %>