added support for results for full elections
[selectricity] / app / views / common / _methodinfo_condorcet.rhtml
diff --git a/app/views/common/_methodinfo_condorcet.rhtml b/app/views/common/_methodinfo_condorcet.rhtml
new file mode 100644 (file)
index 0000000..5fb29e0
--- /dev/null
@@ -0,0 +1,25 @@
+<div class="rbmoreinfo">
+<h4>About Simple Cordorcet Voting</h4>
+
+<p><%= link_to "Condorcet",
+"http://en.wikipedia.org/wiki/Condorcet_method" %> allows voters to rank
+candidates in order of preference.  If there is a choice whom voters
+prefer to each other choice when compared to one at a time, that choice
+will be the winner.</p>
+
+<p>There is a family of Condorcet methods. This method is referred to as
+"Simple Condorcet" to distinguish it from the Schulze method which is
+another Condorcet system.</p>
+
+<% 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?