X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/538c52ea43285fc1ae40e3c3ff5ee78befa1c142:/app/views/quickvote/_methodinfo_condorcet.rhtml..da6c29f53b3598a6d2d9959df277b0340bc54cee:/app/views/common/_methodinfo_condorcet.rhtml diff --git a/app/views/quickvote/_methodinfo_condorcet.rhtml b/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 b1e7005..5fb29e0 100644 --- a/app/views/quickvote/_methodinfo_condorcet.rhtml +++ b/app/views/common/_methodinfo_condorcet.rhtml @@ -11,6 +11,15 @@ will be the winner.

"Simple Condorcet" to distinguish it from the Schulze method which is another Condorcet system.

-<%= 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 -%>