From:
Each number in the table below shows how many times the candidate on +the left beat the matching candidate on the top. The winner is on the +top of the left column.
+ +<% candidates.each do |candidate| -%> @@ -34,12 +37,15 @@ left column. |
A simplification of the above data. The winner is on the left; each +cell names the defeated candidate and the magnitude of the victory in +parenthesis.
+ +<%=h @names[victor] %> | @@ -56,5 +62,6 @@ names the defeated candidate and the magnitude of the victory in parenthesis.
---|
The winner is: - <%=h @candidates[result.winner].name.capitalize %>
++<% if result.winner? and result.winners.length == 1 -%> + The winner is: + <%=h @candidates[result.winner].name.capitalize %> <% elsif result.winner? and result.winners.length > 1 %> -
There was a tie. The winners are: <%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%>
+ There was a tie. The winners are: <%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%> <% else %> -There is no winner using this method.
+There is no winner using this method. <% end %> +
This election was run using: <%= ELECTION_TYPES[@election.election_method] %>
diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index 4c91538..5fd5f9e 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -5,6 +5,10 @@ Results +Vote Description:
<%=h @election.shortdesc %> diff --git a/app/views/quickvote/success.rhtml b/app/views/quickvote/success.rhtml index 59e51f3..5582783 100644 --- a/app/views/quickvote/success.rhtml +++ b/app/views/quickvote/success.rhtml @@ -11,8 +11,8 @@This vote will end on <%= @quickvote.enddate.strftime('%A, %B %d, %Y') %>
-QuickVotes are open to the public but are not publicly listed on the -HyperChad site. Voters do not need to log in or authenticate to -participate in this election.
+QuickVotes are open to the public but are not listed on the +Selectricity site except right when they were created. Voters do not +need to log in or authenticate to participate in this election.
<%= link_to "Jump to QuickVote", quickvote_url( :ident => @quickvote.name ) %>
diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css index 418e892..0260bc4 100644 --- a/public/stylesheets/main.css +++ b/public/stylesheets/main.css @@ -71,15 +71,9 @@ label { color: #666666; } -/* #graph { - margin-top: 50px; - background: url(/images/graph.jpg) top left no-repeat; - height: 0px; - overflow: hidden; - padding-top: 243px; -} */ - - +.graph { + text-align: center; +} /* Right column. Includes top-bar and main-box. */ @@ -266,6 +260,10 @@ li.moveable { float: left; } +.result_table { + text-align: center; + margin-bottom: 1em; +} .preftable { font-family: verdana,arial,helvetica,sans-serif; border-spacing: 0px; @@ -274,10 +272,7 @@ li.moveable { border-style: solid; caption-side: top; } -.preftable caption { - font-family: verdana,arial,helvetica,sans-serif; - font-size: 0.9em; -} + .preftable th { font-family: verdana,arial,helvetica,sans-serif; border-width: 2px; @@ -447,3 +442,25 @@ div.photo img { border: 1px black solid; } +.winner_text { + text-align: center; +} + +#winner_box { + border: 3px white solid; + background-color: #666666; + color: white; + margin: 0.5em 0 1em 0; +} + +.winner_text { + font-size: 1.2em; +} +#winner_box .winner_text { + font-size: 2em; +} + +#winner_box p { + margin: 0; + padding: 0; +}