added support for results for full elections
[selectricity-live] / app / views / common / _methodinfo_condorcet.rhtml
similarity index 58%
rename from app/views/quickvote/_methodinfo_condorcet.rhtml
rename to app/views/common/_methodinfo_condorcet.rhtml
index b1e700537cdc0ffd66577b1e7555c4228c0cc686..5fb29e05fc22f33e0f0bf9e47da2e70599099a3d 100644 (file)
@@ -11,6 +11,15 @@ will be the winner.</p>
 "Simple Condorcet" to distinguish it from the Schulze method which is
 another Condorcet system.</p>
 
-<%= render :partial => 'pref_tables' %>
+<% candidates = @election.ssd_result.ranked_candidates.flatten -%>
+<% if candidates.size <= 7 -%>
+  <%= render_partial 'common/pref_tables' %>
+<% else %>
+
+  There are too many candidates in your elections to show the result
+  tables.  <%= link_to "Click here", { :action => 'pref_tables', :id =>
+  @voter.password }, :popup => [] %> to view details.
+
+<% end -%>
 
 </div>

Benjamin Mako Hill || Want to submit a patch?