From 23a4b9a7ef084c39ab1aaa9fa2adaf4a243b4137 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 3 Aug 2016 11:20:40 +0100 Subject: [PATCH] Comment out showing candidates for upcoming elections --- views/district.haml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/views/district.haml b/views/district.haml index 7467abd..937e9b6 100644 --- a/views/district.haml +++ b/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