Election results in the London Borough of Sutton.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

50 line
1.1 KiB

  1. .grid_12
  2. %p Sutton Council Election 6 May 2010 Results
  3. %h1= @ward.name + " Ward"
  4. - @page_title = @ward.name + " Ward Results, Sutton Council Election 6 May 2010"
  5. - count = 0
  6. %table
  7. %tr
  8. %th
  9. %th
  10. %th.right Votes
  11. -#
  12. %th.right %
  13. %th.right Change
  14. - for candidate in @candidates
  15. - count += 1
  16. %tr.vcard
  17. %td= count
  18. %td
  19. %span.candidate_name.fn
  20. = candidate.forenames.split(' ')[0]
  21. = candidate.surname
  22. %br
  23. %span.candidate_party.org
  24. = candidate.party.name
  25. %td.right= candidate.votes_2010
  26. %td.right
  27. - pc_2010 = candidate.votes_2010.to_f / @total_2010 * 100
  28. = sprintf("%0.1f%%", pc_2010)
  29. -#
  30. %td.right
  31. - unless candidate.percent_2005.nil?
  32. - change_2010 = pc_2010 - candidate.percent_2005
  33. = sprintf("%+0.1f%%", change_2010)
  34. %td
  35. - if count < 4
  36. %strong ELECTED
  37. %p
  38. Total votes:
  39. = @total_2010