| @@ -1,10 +1,9 @@ | |||||
| - @page_title = "#{@election.body.name} #{@election.kind} #{long_date(@election.d)}" | - @page_title = "#{@election.body.name} #{@election.kind} #{long_date(@election.d)}" | ||||
| .nav | |||||
| %p | |||||
| %a{ :href => "/bodies/#{@election.body.slug}" } | |||||
| « | |||||
| = @election.body.name | |||||
| %nav | |||||
| %a{ :href => "/bodies/#{@election.body.slug}" } | |||||
| « | |||||
| = @election.body.name | |||||
| - if @elections_for_this_body.size > 1 | - if @elections_for_this_body.size > 1 | ||||
| %p | %p | ||||
| @@ -69,8 +68,8 @@ | |||||
| %th | %th | ||||
| %th.highlight seats won | %th.highlight seats won | ||||
| %th votes | %th votes | ||||
| %th % seats | |||||
| %th % votes | %th % votes | ||||
| %th % seats | |||||
| %th votes per seat | %th votes per seat | ||||
| %th candidates | %th candidates | ||||
| %th votes per candidate | %th votes per candidate | ||||
| @@ -84,8 +83,8 @@ | |||||
| %td.data_seats.right.highlight= row.seatz | %td.data_seats.right.highlight= row.seatz | ||||
| %td.data_votes.right= commify(row.votez) | %td.data_votes.right= commify(row.votez) | ||||
| - if @election_held | - if @election_held | ||||
| %td.right= format_percent(row.seatz.to_f / @total_seats * 100) | |||||
| %td.right= format_percent(row.votez.to_f / @total_votes * 100) | %td.right= format_percent(row.votez.to_f / @total_votes * 100) | ||||
| %td.right= format_percent(row.seatz.to_f / @total_seats * 100) | |||||
| %td.data_votes_per_seat.right | %td.data_votes_per_seat.right | ||||
| - if row.seatz > 0 | - if row.seatz > 0 | ||||
| = commify(row.votez / row.seatz) | = commify(row.votez / row.seatz) | ||||