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.
 
 
 
 

58 lignes
1.3 KiB

  1. .grid_12
  2. %p UK Parliament Election 6 May 2010 Results
  3. %h1= @constituency.name + " Constituency"
  4. - @page_title = @constituency.name + " Constituency Results, UK Parliament Election 6 May 2010"
  5. - count = 0
  6. %table
  7. %tr
  8. %th
  9. %th
  10. %th
  11. %th.right Votes
  12. %th.right %
  13. %th.right Change
  14. %th
  15. - for candidate in @candidates
  16. - count += 1
  17. %tr.vcard
  18. %td= count
  19. %td{ :style => "background-color: #{candidate.party.colour}" }  
  20. %td
  21. %span.candidate_name.fn
  22. = candidate.forenames.split(' ')[0]
  23. = candidate.surname
  24. %br
  25. %span.candidate_party.org
  26. = candidate.party.name
  27. %td.right= candidate.votes_2010
  28. %td.right
  29. - pc_2010 = candidate.votes_2010.to_f / @total_2010 * 100
  30. = sprintf("%0.1f%%", pc_2010)
  31. %td.right
  32. - unless candidate.percent_2005.nil?
  33. - change_2010 = pc_2010 - candidate.percent_2005
  34. = sprintf("%+0.1f%%", change_2010)
  35. %td
  36. - if count == 1
  37. .elected ELECTED
  38. %tr.noborder
  39. %td
  40. %td
  41. %td
  42. %td= @total_2010
  43. %td
  44. %td
  45. %td