|
|
@@ -6,22 +6,21 @@ |
|
|
|
|
|
|
|
- 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] |
|
|
|
%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 |
|
|
|
|
|
|
|
|
|
|
|
- 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] |
|
|
|
%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 |
|
|
|
» |
|
|
|
|
|
|
|
%p |
|
|
|
%a{ :href => "/bodies/#{@district.body.slug}/elections/#{@election.d}" }< |
|
|
|
%a{ :href => "/bodies/#{@district.body.slug}/elections/#{@election.d}" } |
|
|
|
= @body.name |
|
|
|
= @election.kind |
|
|
|
|
|
|
|
= long_date(@election.d) |
|
|
|
|
|
|
|
%h1 |
|
|
|