|
@@ -37,9 +37,9 @@ |
|
|
|
|
|
|
|
|
%table |
|
|
%table |
|
|
%tr.header |
|
|
%tr.header |
|
|
%th |
|
|
|
|
|
%th |
|
|
|
|
|
%th |
|
|
|
|
|
|
|
|
%th |
|
|
|
|
|
%th |
|
|
|
|
|
%th |
|
|
%th.right.highlight seats won |
|
|
%th.right.highlight seats won |
|
|
%th candidates |
|
|
%th candidates |
|
|
%th.right votes |
|
|
%th.right votes |
|
@@ -59,25 +59,26 @@ |
|
|
%td.right= format_percent(row['total_votes'].to_f / @total_votes * 100) |
|
|
%td.right= format_percent(row['total_votes'].to_f / @total_votes * 100) |
|
|
|
|
|
|
|
|
%tr.footer |
|
|
%tr.footer |
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
%td.right.highlight= @total_seats |
|
|
%td.right.highlight= @total_seats |
|
|
%td.right= @total_candidates |
|
|
%td.right= @total_candidates |
|
|
%td.right= commify(@total_votes) |
|
|
%td.right= commify(@total_votes) |
|
|
%td |
|
|
|
|
|
|
|
|
%td |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%h2 Votes by candidate |
|
|
%h2 Votes by candidate |
|
|
|
|
|
|
|
|
%table |
|
|
%table |
|
|
%tr.header |
|
|
%tr.header |
|
|
%th |
|
|
|
|
|
%th |
|
|
|
|
|
%th |
|
|
|
|
|
|
|
|
%th |
|
|
|
|
|
%th |
|
|
|
|
|
%th |
|
|
|
|
|
%th |
|
|
%th.right votes |
|
|
%th.right votes |
|
|
%th.right % votes |
|
|
%th.right % votes |
|
|
%th |
|
|
|
|
|
|
|
|
%th |
|
|
|
|
|
|
|
|
- count = 0 |
|
|
- count = 0 |
|
|
- for candidacy in @candidacies |
|
|
- for candidacy in @candidacies |
|
@@ -89,7 +90,7 @@ |
|
|
%span.candidate_name.fn |
|
|
%span.candidate_name.fn |
|
|
%a{ :href => "/candidates/#{candidacy.candidate.id}" } |
|
|
%a{ :href => "/candidates/#{candidacy.candidate.id}" } |
|
|
= candidacy.candidate.short_name |
|
|
= candidacy.candidate.short_name |
|
|
%br |
|
|
|
|
|
|
|
|
%td |
|
|
%span.candidate_party.org |
|
|
%span.candidate_party.org |
|
|
= candidacy.party.name |
|
|
= candidacy.party.name |
|
|
|
|
|
|
|
@@ -97,15 +98,16 @@ |
|
|
|
|
|
|
|
|
%td.right= format_percent(candidacy.votes.to_f / @total_votes * 100) |
|
|
%td.right= format_percent(candidacy.votes.to_f / @total_votes * 100) |
|
|
|
|
|
|
|
|
%td |
|
|
|
|
|
- if candidacy.seats == 1 |
|
|
|
|
|
.elected ELECTED |
|
|
|
|
|
|
|
|
- if candidacy.seats == 1 |
|
|
|
|
|
%td.elected="Elected" |
|
|
|
|
|
- else |
|
|
|
|
|
%td |
|
|
|
|
|
|
|
|
%tr.footer |
|
|
%tr.footer |
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
%td.right= commify(@total_votes) |
|
|
%td.right= commify(@total_votes) |
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
%td |
|
|
|
|
|
|
|
|
%td |
|
|
|
|
|
%td |