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.
 
 
 
 

82 lignes
2.1 KiB

  1. .grid_12
  2. %h1 Sutton Elections 6 May 2010
  3. %h2 UK Parliament Election Results
  4. %p
  5. %a{ :href => '/results/uk-parliament/2010-05-06/carshalton-and-wallington' } Carshalton and Wallington Constituency
  6. %p
  7. %a{ :href => '/results/uk-parliament/2010-05-06/sutton-and-cheam' } Sutton and Cheam Constituency
  8. %h2 Sutton Council Election Results Summary
  9. %table
  10. %tr
  11. %th
  12. %th
  13. %th Seats
  14. %th % Seats
  15. %th Votes
  16. %th % Votes
  17. - for result in @results
  18. %tr
  19. %td{ :style => "background-color: #{result[2]}" }  
  20. %td= result[0]
  21. -# Some pretty serious cheating going on here!
  22. %td.right
  23. - if result[0] == 'Conservative Party'
  24. 11
  25. - elsif result[0] == 'Liberal Democrats'
  26. 43
  27. - else
  28. 0
  29. %td.right
  30. - if result[0] == 'Conservative Party'
  31. 20%
  32. - elsif result[0] == 'Liberal Democrats'
  33. 80%
  34. - else
  35. 0%
  36. %td.right= result[1]
  37. %td.right= sprintf("%0.1f%%", result[1].to_f / @total_votes * 100)
  38. %tr.noborder
  39. %td
  40. %td
  41. %td.right 54
  42. %td
  43. %td.right.strong= @total_votes
  44. %td
  45. %h2 Sutton Council Results by Ward
  46. - for ward in @wards
  47. %p
  48. %a{ :href=> "/results/sutton-council/2010-05-06/#{ward.slug}" }
  49. = ward.name
  50. -#
  51. %h1
  52. Vote for your MP and
  53. %br
  54. councillors in Sutton
  55. %p
  56. On 6 May 2010 you can vote to
  57. %strong choose your local MP
  58. and help to decide the next government of the country.
  59. %p
  60. You can also
  61. %strong elect your local councillors
  62. and help to decide who runs Sutton Council.
  63. %p Who you can vote for depends on where you live. You can find your local candidates and get more information on how the elections work here.
  64. %form{ :method => 'get', :action => '/' }
  65. %label{ :for => "postcode" } My postcode is
  66. %input{ :type => 'text', :name => 'postcode', :value => 'SM1 1EA', :size => 8, :maxlength => 8 }
  67. %input{ :type => 'submit', :value => "Find it" }
  68. .grid_3