| @@ -48,9 +48,9 @@ get '/results/uk-parliament/2010-05-06/:constituency' do | |||||
| else | else | ||||
| const = 2 | const = 2 | ||||
| end | end | ||||
| @constituency = Constituency.get(const) | |||||
| @candidates = Parliamentcandidate.all(:constituency_id => const, :order => [ :votes_2010.desc ]) | |||||
| @total_2010 = Parliamentcandidate.sum(:votes_2010, :constituency_id => const) | |||||
| @constituency = Constituency.get(const) | |||||
| @candidates = Parliamentcandidate.all(:constituency_id => const, :order => [ :votes_2010.desc ]) | |||||
| @total_2010 = Parliamentcandidate.sum(:votes_2010, :constituency_id => const) | |||||
| haml :resultsukparliament | haml :resultsukparliament | ||||
| end | end | ||||
| @@ -1,4 +1,19 @@ | |||||
| .grid_9 | |||||
| .grid_12 | |||||
| %h1 Sutton Elections 6 May 2010 | |||||
| %h2 UK Parliament Election Results | |||||
| -# | |||||
| %p | |||||
| %a{ :href => '/results/uk-parliament/2010-05-06/carshalton-and-wallington' } Carshalton and Wallington Constituency | |||||
| %p | |||||
| %a{ :href => '/results/uk-parliament/2010-05-06/sutton-and-cheam' } Sutton and Cheam Constituency | |||||
| %h2 Sutton Council Election Results | |||||
| %p | |||||
| Votes for the Sutton Council election will be counted during the day on Friday 7 May. Results will appear here as soon as they are available. | |||||
| -# | |||||
| %h1 | %h1 | ||||
| Vote for your MP and | Vote for your MP and | ||||
| %br | %br | ||||
| @@ -12,9 +12,9 @@ | |||||
| %tr | %tr | ||||
| %th | %th | ||||
| %th | %th | ||||
| %th Votes | |||||
| %th % | |||||
| %th Change | |||||
| %th.right Votes | |||||
| %th.right % | |||||
| %th.right Change | |||||
| - for candidate in @candidates | - for candidate in @candidates | ||||
| - count += 1 | - count += 1 | ||||
| %tr.vcard | %tr.vcard | ||||