Browse Source

Reorder % votes/% seats columns; make .nav a %nav

tags/last-sinatra-version
Adrian Short 8 years ago
parent
commit
415c6ef3af
1 changed files with 6 additions and 7 deletions
  1. +6
    -7
      views/electionsummary.haml

+ 6
- 7
views/electionsummary.haml View File

@@ -1,10 +1,9 @@
- @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
%p
@@ -69,8 +68,8 @@
%th  
%th.highlight seats won
%th votes
%th % seats
%th % votes
%th % seats
%th votes per seat
%th candidates
%th votes per candidate
@@ -84,8 +83,8 @@
%td.data_seats.right.highlight= row.seatz
%td.data_votes.right= commify(row.votez)
- 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.seatz.to_f / @total_seats * 100)
%td.data_votes_per_seat.right
- if row.seatz > 0
= commify(row.votez / row.seatz)


Loading…
Cancel
Save