Election results in the London Borough of Sutton.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

77 líneas
1.9 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
  9. %table
  10. %tr
  11. %th
  12. %th Votes
  13. %th % Votes
  14. %th Seats
  15. %th % Seats
  16. - for result in @results
  17. %tr
  18. %td= result[0]
  19. %td.right= result[1]
  20. %td.right= sprintf("%0.1f", result[1].to_f / @total_votes * 100)
  21. %td.right
  22. - if result[0] == 'Conservative Party'
  23. 11
  24. - elsif result[0] == 'Liberal Democrats'
  25. 43
  26. - else
  27. 0
  28. %td.right
  29. - if result[0] == 'Conservative Party'
  30. 20%
  31. - elsif result[0] == 'Liberal Democrats'
  32. 80%
  33. - else
  34. 0%
  35. %p
  36. Total votes:
  37. = @total_votes
  38. %p All ward results are now available below.
  39. - for ward in @wards
  40. %p
  41. %a{ :href=> "/results/sutton-council/2010-05-06/#{ward.slug}" }
  42. = ward.name
  43. Ward
  44. -#
  45. %h1
  46. Vote for your MP and
  47. %br
  48. councillors in Sutton
  49. %p
  50. On 6 May 2010 you can vote to
  51. %strong choose your local MP
  52. and help to decide the next government of the country.
  53. %p
  54. You can also
  55. %strong elect your local councillors
  56. and help to decide who runs Sutton Council.
  57. %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.
  58. %form{ :method => 'get', :action => '/' }
  59. %label{ :for => "postcode" } My postcode is
  60. %input{ :type => 'text', :name => 'postcode', :value => 'SM1 1EA', :size => 8, :maxlength => 8 }
  61. %input{ :type => 'submit', :value => "Find it" }
  62. .grid_3