From a3dc38577347e544da0e25ef916679c8217dd7cb Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 1 Aug 2016 21:09:19 +0100 Subject: [PATCH] Make the header the district link --- views/resultsdistrict.haml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/views/resultsdistrict.haml b/views/resultsdistrict.haml index cf0b521..5cbf743 100644 --- a/views/resultsdistrict.haml +++ b/views/resultsdistrict.haml @@ -24,13 +24,9 @@ = @next_district.name » - %p - %a{ :href => "/bodies/#{@district.body.slug}/#{@district.body.district_name.pluralize(2)}/#{@district.slug}" } - All elections in - = @district.name - » - -%h1= @district.name + " " + @district.body.district_name +%h1 + %a{ :href => "/bodies/#{@district.body.slug}/#{@district.body.district_name.pluralize(2)}/#{@district.slug}" } + = @district.name + " " + @district.body.district_name - @election_held = Candidacy.sum(:votes, :election => @election, :district => @district)