Election results in the London Borough of Sutton.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

86 lignes
2.5 KiB

  1. - if flash[:polling_station]
  2. %p
  3. #polling_station
  4. %h2 Where to vote
  5. %p
  6. = flash[:polling_station]
  7. %p Polling stations are open from 7AM to 10PM on Thursday 22 May 2014.
  8. %p You don't need your poll card to vote. Just tell the staff your name and address.
  9. - @page_title = "#{@district.name} #{@district.body.district_name}, #{@district.body.name}"
  10. .nav
  11. %p
  12. %a{ :href => "/bodies/#{@district.body.slug}" }
  13. « 
  14. = @district.body.name
  15. %h1= "#{@district.name} #{@district.body.district_name}"
  16. -# Candidates for 22 May 2014 council election
  17. - @election = Election.get(8)
  18. %h2
  19. = @district.name
  20. ward candidates for the
  21. %a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}"}
  22. = @election.body.name
  23. election on
  24. = long_date(@election.d)
  25. %table
  26. - Candidacy.all(:election => @election, :district => @district, :order => [:party_id]).each do |c|
  27. - campaign = Campaign.first(:party => c.party, :election => @election)
  28. %tr.vcard
  29. %td{ :style => "background-color: #{c.party.colour}" }  
  30. %td.candidate_name.fn
  31. %a{ :href => "/candidates/#{c.candidate.id}" }
  32. = c.candidate.short_name
  33. %td.org
  34. - if campaign && campaign.party_url
  35. %a{ :href => campaign.party_url }
  36. = party_name(c.labcoop, c.party.name)
  37. - else
  38. = party_name(c.labcoop, c.party.name)
  39. %td
  40. - if campaign && campaign.manifesto_html_url
  41. %a{ :href => campaign.manifesto_html_url }
  42. manifesto
  43. - else
  44.  
  45. -# TODO % turnout plotted over time
  46. -# TODO map of district shown within Sutton boundary
  47. %h2
  48. Candidates elected previously in
  49. = @district.name
  50. = @district.body.district_name
  51. - Election.all(:body => @district.body, :order => [:d.desc]).each do |election|
  52. - ccys = Candidacy.all(:election_id => election.id, :district_id => @district.id, :seats => 1, :order => [:votes.desc])
  53. - unless ccys == []
  54. %h3
  55. %a{ :href => "/bodies/#{@district.body.slug}/elections/#{election.d}/#{election.body.districts_name}/#{@district.slug}"}
  56. = long_date election.d
  57. = election.kind
  58. %table
  59. %tr
  60. %th
  61. %th
  62. %th
  63. %th
  64. - ccys.each do |ccy|
  65. %tr
  66. %td= ccy.position
  67. %td{ :style => "background-color: #{ccy.party.colour}" }  
  68. %td
  69. %a{ :href => "/candidates/#{ccy.candidate.id}" }
  70. = ccy.candidate.short_name
  71. %td= ccy.party.name