From: John Dong Date: Fri, 31 Aug 2007 16:59:55 +0000 (-0400) Subject: Merge jdong X-Git-Url: https://projects.mako.cc/source/selectricity-live/commitdiff_plain/07c4c28f94d7628c0d5c48db810956f680c5f48e?hp=74373452650a5ef7eff91f8c479d23500ace3c0c Merge jdong --- diff --git a/app/views/quickvote/_pref_tables.rhtml b/app/views/quickvote/_pref_tables.rhtml index 628ce55..3479167 100644 --- a/app/views/quickvote/_pref_tables.rhtml +++ b/app/views/quickvote/_pref_tables.rhtml @@ -1,8 +1,9 @@ -<% candidates = @election.condorcet_result.ranked_candidates.flatten -%> +<% candidates = @election.ssd_result.ranked_candidates.flatten -%> <% voters = @election.voters.size %> -<% matrix = @election.condorcet_result.matrix %> -<% victories = @election.condorcet_result.victories_and_ties %> +<% matrix = @election.ssd_result.matrix %> +<% victories = @election.ssd_result.victories_and_ties %> +<% if candidates.size <= 7 -%> @@ -30,7 +31,7 @@ <% end -%>
- +
<% candidates.each do |victor| %> @@ -49,3 +50,5 @@ <% end -%>
+<% end -%> + diff --git a/app/views/quickvote/_result_box.rhtml b/app/views/quickvote/_result_box.rhtml index 41d9d17..917dbd4 100644 --- a/app/views/quickvote/_result_box.rhtml +++ b/app/views/quickvote/_result_box.rhtml @@ -9,8 +9,11 @@ <% end %> +<% unless @election.election_method == method -%> +<%= render :partial => 'result', :object => @results[method]%> +<% end -%> <%= render :partial => 'methodinfo_' + method, - :object => @results[@election.election_method] %> + :object => @results[method] %> diff --git a/app/views/quickvote/_results_sidebar.rhtml b/app/views/quickvote/_results_sidebar.rhtml index c60ed3d..37776b8 100644 --- a/app/views/quickvote/_results_sidebar.rhtml +++ b/app/views/quickvote/_results_sidebar.rhtml @@ -34,4 +34,11 @@ Event.observe(method_select, 'change', show_results_for);

Statistics

<%= image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%> +
+
+ +

Voter Report

+ +

<%= link_to "[View All Voters: Map and Other Info]", :controller => "quickvote", + :action => "list_voters", :id => @election.id %>

diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index 52810fe..3ba74f5 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -41,14 +41,6 @@
-
- Voter Report - -
- -

<%= link_to "[View All Voters]", :controller => "quickvote", :action => "list_voters", :id => @election.id %>

-
- diff --git a/config/gmaps_api_key.yml b/config/gmaps_api_key.yml index b0c65fb..b7ceca6 100644 --- a/config/gmaps_api_key.yml +++ b/config/gmaps_api_key.yml @@ -9,4 +9,4 @@ test: ABQIAAAAzMUFFnT9uH0xq39J0Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDKaBR6j135zrztfTGVOm2QlWnkaidDIQ production: - ABQIAAAA479zRK1hoNqMcKLTMuBcTRQ0mFvgRda1vOZQqJO6gQItognzGRQueA871M_O5_Q9Pd9xs4Ah4SNYTg + ABQIAAAA479zRK1hoNqMcKLTMuBcTRR0OKg4vZKrhw1amyo3djP_wIZS7BQ-fJouJ5VRd_fb2HO6KKzIMAVW6Q diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css index 13626a1..a77ca83 100644 --- a/public/stylesheets/main.css +++ b/public/stylesheets/main.css @@ -274,14 +274,15 @@ li.moveable { } .preftable th { + font-family: verdana,arial,helvetica,sans-serif; border-width: 2px; border-color: #999999; border-style: solid; text-align: center; font-weight: bold; - padding: 5px 5px 5px 15px; + padding: 5px 5px 5px 5px; background-color: #999999; - color: #fff; + color: #FFFFFF; } .preftable td {