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.
 
 
 
 

49 rivejä
1.1 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.right Votes
  11. %th.right %
  12. %th.right Change
  13. - for candidate in @candidates
  14. - count += 1
  15. %tr.vcard
  16. %td= count
  17. %td
  18. %span.candidate_name.fn
  19. = candidate.forenames.split(' ')[0]
  20. = candidate.surname
  21. %br
  22. %span.candidate_party.org
  23. = candidate.party.name
  24. %td.right= candidate.votes_2010
  25. %td.right
  26. - pc_2010 = candidate.votes_2010.to_f / @total_2010 * 100
  27. = sprintf("%0.1f%%", pc_2010)
  28. %td.right
  29. - unless candidate.percent_2005.nil?
  30. - change_2010 = pc_2010 - candidate.percent_2005
  31. = sprintf("%+0.1f%%", change_2010)
  32. %td
  33. - if count == 1
  34. %strong ELECTED
  35. %p
  36. Total votes:
  37. = @total_2010