|
@@ -6,22 +6,21 @@ |
|
|
|
|
|
|
|
|
- unless @district_index == 0 # Don't show the previous link if this is the first district for this election |
|
|
- unless @district_index == 0 # Don't show the previous link if this is the first district for this election |
|
|
- @previous_district = @districts_in_this_election[@district_index - 1] |
|
|
- @previous_district = @districts_in_this_election[@district_index - 1] |
|
|
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}/#{@election.body.districts_name}/#{@previous_district.slug}" }< |
|
|
|
|
|
|
|
|
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}/#{@election.body.districts_name}/#{@previous_district.slug}" } |
|
|
« |
|
|
« |
|
|
= @previous_district.name |
|
|
= @previous_district.name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- unless @district_index == @districts_in_this_election.size - 1 # Don't show the next link if this is the last district for this election |
|
|
- unless @district_index == @districts_in_this_election.size - 1 # Don't show the next link if this is the last district for this election |
|
|
- @next_district = @districts_in_this_election[@district_index + 1] |
|
|
- @next_district = @districts_in_this_election[@district_index + 1] |
|
|
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}/#{@election.body.districts_name}/#{@next_district.slug}" }< |
|
|
|
|
|
|
|
|
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}/#{@election.body.districts_name}/#{@next_district.slug}" } |
|
|
= @next_district.name |
|
|
= @next_district.name |
|
|
» |
|
|
» |
|
|
|
|
|
|
|
|
%p |
|
|
%p |
|
|
%a{ :href => "/bodies/#{@district.body.slug}/elections/#{@election.d}" }< |
|
|
|
|
|
|
|
|
%a{ :href => "/bodies/#{@district.body.slug}/elections/#{@election.d}" } |
|
|
= @body.name |
|
|
= @body.name |
|
|
= @election.kind |
|
|
= @election.kind |
|
|
|
|
|
|
|
|
= long_date(@election.d) |
|
|
= long_date(@election.d) |
|
|
|
|
|
|
|
|
%h1 |
|
|
%h1 |
|
|