ソースを参照

Comment out showing candidates for upcoming elections

tags/last-sinatra-version
Adrian Short 8年前
コミット
23a4b9a7ef
1個のファイルの変更19行の追加19行の削除
  1. +19
    -19
      views/district.haml

+ 19
- 19
views/district.haml ファイルの表示

@@ -18,26 +18,26 @@
election on
= long_date(@election.d)

%table
- Candidacy.all(:election => @election, :district => @district, :order => [:party_id]).each do |c|
- campaign = Campaign.first(:party => c.party, :election => @election)
%tr.vcard
%td{ :style => "background-color: #{c.party.colour}" }  
%td.candidate_name.fn
%a{ :href => "/candidates/#{c.candidate.id}" }
= c.candidate.short_name
%td.org
- if campaign && campaign.party_url
%a{ :href => campaign.party_url }
%table
- Candidacy.all(:election => @election, :district => @district, :order => [:party_id]).each do |c|
- campaign = Campaign.first(:party => c.party, :election => @election)
%tr.vcard
%td{ :style => "background-color: #{c.party.colour}" }  
%td.candidate_name.fn
%a{ :href => "/candidates/#{c.candidate.id}" }
= c.candidate.short_name
%td.org
- if campaign && campaign.party_url
%a{ :href => campaign.party_url }
= party_name(c.labcoop, c.party.name)
- else
= party_name(c.labcoop, c.party.name)
- else
= party_name(c.labcoop, c.party.name)
%td
- if campaign && campaign.manifesto_html_url
%a{ :href => campaign.manifesto_html_url }
manifesto
- else
 
%td
- if campaign && campaign.manifesto_html_url
%a{ :href => campaign.manifesto_html_url }
manifesto
- else
 


%h2 Candidates elected


読み込み中…
キャンセル
保存