瀏覽代碼

Make the header the district link

tags/last-sinatra-version
Adrian Short 8 年之前
父節點
當前提交
a3dc385773
共有 1 個檔案被更改,包括 3 行新增7 行删除
  1. +3
    -7
      views/resultsdistrict.haml

+ 3
- 7
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)



Loading…
取消
儲存