Browse Source

Comment out showing candidates for upcoming elections

tags/last-sinatra-version
Adrian Short 8 years ago
parent
commit
23a4b9a7ef
1 changed files with 19 additions and 19 deletions
  1. +19
    -19
      views/district.haml

+ 19
- 19
views/district.haml View File

@@ -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


Loading…
Cancel
Save