Election results in the London Borough of Sutton.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

77 rindas
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. -# 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. %p
  37. Total votes:
  38. = @total_votes
  39. %h2 Sutton Council ward results
  40. - for ward in @wards
  41. %p
  42. %a{ :href=> "/results/sutton-council/2010-05-06/#{ward.slug}" }
  43. = ward.name
  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