瀏覽代碼

Remove candidates' list

tags/last-sinatra-version
Adrian Short 9 年之前
父節點
當前提交
e9bd69e1c4
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. +9
    -8
      views/district.haml

+ 9
- 8
views/district.haml 查看文件

@@ -8,15 +8,16 @@

%h1= "#{@district.name} #{@district.body.district_name}"

- @election = Election.get(9) # FIXME magic number
-#
- @election = Election.get(9) # FIXME magic number

%h2
= @district.name
ward candidates for the
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}"}
= @election.body.name
election on
= long_date(@election.d)
%h2
= @district.name
ward candidates for the
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}"}
= @election.body.name
election on
= long_date(@election.d)

%table
- Candidacy.all(:election => @election, :district => @district, :order => [:party_id]).each do |c|


Loading…
取消
儲存