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.
 
 
 
 

65 lignes
1.8 KiB

  1. - @page_title = "#{@district.name} #{@district.body.district_name}, #{@district.body.name}"
  2. .nav
  3. %p
  4. %a{ :href => "/bodies/#{@district.body.slug}" }
  5. « 
  6. = @district.body.name
  7. %h1= "#{@district.name} #{@district.body.district_name}"
  8. -# Candidates for 22 May 2014 council election
  9. - @election = Election.get(8)
  10. %h2
  11. = @district.name
  12. ward candidates for the
  13. %a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}"}
  14. = @election.body.name
  15. election on
  16. = long_date(@election.d)
  17. %table
  18. - Candidacy.all(:election => @election, :district => @district).each do |c|
  19. %tr.vcard
  20. %td{ :style => "background-color: #{c.party.colour}" }  
  21. %td.candidate_name.fn
  22. %a{ :href => "/candidates/#{c.candidate.id}" }
  23. = c.candidate.short_name
  24. %td.org
  25. = party_name(c.labcoop, c.party.name)
  26. -# TODO % turnout plotted over time
  27. -# TODO map of district shown within Sutton boundary
  28. %h2
  29. Candidates elected previously in
  30. = @district.name
  31. = @district.body.district_name
  32. - Election.all(:body => @district.body, :order => [:d.desc]).each do |election|
  33. - ccys = Candidacy.all(:election_id => election.id, :district_id => @district.id, :seats => 1, :order => [:votes.desc])
  34. - unless ccys == []
  35. %h3
  36. %a{ :href => "/bodies/#{@district.body.slug}/elections/#{election.d}/#{election.body.districts_name}/#{@district.slug}"}
  37. = long_date election.d
  38. = election.kind
  39. %table
  40. %tr
  41. %th
  42. %th
  43. %th
  44. %th
  45. - ccys.each do |ccy|
  46. %tr
  47. %td= ccy.position
  48. %td{ :style => "background-color: #{ccy.party.colour}" }  
  49. %td
  50. %a{ :href => "/candidates/#{ccy.candidate.id}" }
  51. = ccy.candidate.short_name
  52. %td= ccy.party.name