| @@ -1,2 +1,3 @@ | |||||
| pat --source gemcutter.org | pat --source gemcutter.org | ||||
| sbfaulkner-sinatra-helpers -s http://gems.github.com | |||||
| @@ -1,5 +1,6 @@ | |||||
| require 'rubygems' | require 'rubygems' | ||||
| require 'sinatra' | require 'sinatra' | ||||
| require 'sinatra-helpers/haml/partials' | |||||
| require 'haml' | require 'haml' | ||||
| require 'pat' | require 'pat' | ||||
| require 'dm-core' | require 'dm-core' | ||||
| @@ -39,6 +40,10 @@ get '/how-the-council-election-works' do | |||||
| haml :election | haml :election | ||||
| end | end | ||||
| get '/how-the-parliament-election-works' do | |||||
| haml :parliament | |||||
| end | |||||
| # get '/voting' do | # get '/voting' do | ||||
| # haml :voting | # haml :voting | ||||
| # end | # end | ||||
| @@ -0,0 +1,9 @@ | |||||
| .noprint, #footer | |||||
| { | |||||
| display: none; | |||||
| } | |||||
| body | |||||
| { | |||||
| margin: 0 auto; | |||||
| } | |||||
| @@ -41,7 +41,7 @@ input.postcode | |||||
| font-size: 100%; | font-size: 100%; | ||||
| background-color: #fff; | background-color: #fff; | ||||
| text-align: left; | text-align: left; | ||||
| margin: 40px 0; | |||||
| margin: 40px 0 0 0; | |||||
| } | } | ||||
| .credit | .credit | ||||
| @@ -54,7 +54,7 @@ input.postcode | |||||
| a, a:visited | a, a:visited | ||||
| { | { | ||||
| background-color: #d9ec96; | background-color: #d9ec96; | ||||
| padding: 2px 5px; | |||||
| padding: 1px 4px; | |||||
| color: #111; | color: #111; | ||||
| text-decoration: none; | text-decoration: none; | ||||
| } | } | ||||
| @@ -62,7 +62,7 @@ a, a:visited | |||||
| a:hover | a:hover | ||||
| { | { | ||||
| background-color: #4f4f4f; | background-color: #4f4f4f; | ||||
| color: #86a11d; | |||||
| color: #fff; | |||||
| } | } | ||||
| a.date | a.date | ||||
| @@ -82,7 +82,7 @@ a.date | |||||
| h1 | h1 | ||||
| { | { | ||||
| margin-top: 20px; | margin-top: 20px; | ||||
| line-height: 1.5em; | |||||
| line-height: 1.4em; | |||||
| font-weight: bold; | font-weight: bold; | ||||
| color: #86a11d; | color: #86a11d; | ||||
| } | } | ||||
| @@ -0,0 +1,12 @@ | |||||
| %h2 Register to vote | |||||
| %p | |||||
| If you're not already registered to vote you must do so by | |||||
| %strong 20 April | |||||
| otherwise you won't be able to take part. | |||||
| %p | |||||
| You can get a registration form at the | |||||
| %a{ :href => "http://www.aboutmyvote.co.uk/" } About My Vote | |||||
| website or by phoning Sutton Council on | |||||
| %span{ :class => 'phone' } 020 8770 4888. | |||||
| @@ -3,12 +3,12 @@ | |||||
| %p | %p | ||||
| This website was designed and written by | This website was designed and written by | ||||
| %a{ :href => 'http://adrianshort.co.uk' }> Adrian Short | |||||
| %a{ :href => 'http://adrianshort.co.uk' } Adrian Short | |||||
| \. | \. | ||||
| You can contact me by email at | You can contact me by email at | ||||
| %a{ :href => "mailto:adrian.short@gmail.com" }< adrian.short@gmail.com | |||||
| %a{ :href => "mailto:adrian.short@gmail.com" } adrian.short@gmail.com | |||||
| and | and | ||||
| %a{ :href => "http://twitter.com/adrianshort" }<follow me on Twitter | |||||
| %a{ :href => "http://twitter.com/adrianshort" } follow me on Twitter | |||||
| \. | \. | ||||
| %p.highlight This site is independent of Sutton Council, all political parties and candidates. | %p.highlight This site is independent of Sutton Council, all political parties and candidates. | ||||
| @@ -13,16 +13,4 @@ | |||||
| %p If a political party gets 28 or more councillors they get to run Sutton Council and decide its policies and services until the next election in four years time. | %p If a political party gets 28 or more councillors they get to run Sutton Council and decide its policies and services until the next election in four years time. | ||||
| %h2 Register to vote | |||||
| %p | |||||
| If you're not already registered to vote you must do so by | |||||
| %strong 20 April | |||||
| otherwise you won't be able to take part. | |||||
| %p | |||||
| You can get a registration form at the | |||||
| %a{ :href => "http://www.aboutmyvote.co.uk/" } About My Vote | |||||
| website or by phoning Sutton Council on | |||||
| %span{ :class => 'phone' } 020 8770 4888. | |||||
| = haml_partial('register-to-vote') | |||||
| @@ -4,6 +4,7 @@ | |||||
| %head | %head | ||||
| %title Sutton Elections 6 May 2010 | %title Sutton Elections 6 May 2010 | ||||
| %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/style.css' } | %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/style.css' } | ||||
| %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/print.css', :media => 'print' } | |||||
| %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' } | %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' } | ||||
| <script type="text/javascript" src="http://use.typekit.com/wfg6cvc.js"></script> | <script type="text/javascript" src="http://use.typekit.com/wfg6cvc.js"></script> | ||||
| <script type="text/javascript">try{Typekit.load();}catch(e){}</script> | <script type="text/javascript">try{Typekit.load();}catch(e){}</script> | ||||
| @@ -20,6 +21,8 @@ | |||||
| .grid_12 | .grid_12 | ||||
| %p | %p | ||||
| %a{ :href => '/' } Home | %a{ :href => '/' } Home | ||||
| %p | |||||
| %a{ :href => '/how-the-parliament-election-works' } How the parliament election works | |||||
| %p | %p | ||||
| %a{ :href => '/how-the-council-election-works' } How the council election works | %a{ :href => '/how-the-council-election-works' } How the council election works | ||||
| -# | -# | ||||
| @@ -0,0 +1,6 @@ | |||||
| .grid_9 | |||||
| %h1 How the parliament election works | |||||
| %p Text to follow… | |||||
| = haml_partial('register-to-vote') | |||||
| @@ -7,7 +7,7 @@ | |||||
| .grid_6 | .grid_6 | ||||
| %h1 | %h1 | ||||
| = @ward.constituency.name | = @ward.constituency.name | ||||
| member of parliament | |||||
| MP candidates | |||||
| .grid_6 | .grid_6 | ||||
| %h1 | %h1 | ||||
| @@ -21,8 +21,8 @@ | |||||
| You can vote for | You can vote for | ||||
| %strong | %strong | ||||
| ONE | ONE | ||||
| of these people to become your next MP. | |||||
| %p | |||||
| of these people to become your member of parliament. | |||||
| %p.noprint | |||||
| Find out more about | Find out more about | ||||
| %a{ :href => '/how-the-parliament-election-works' } how the parliament election works. | %a{ :href => '/how-the-parliament-election-works' } how the parliament election works. | ||||
| @@ -32,7 +32,7 @@ | |||||
| %strong | %strong | ||||
| THREE | THREE | ||||
| of these people to become your local councillors. | of these people to become your local councillors. | ||||
| %p | |||||
| %p.noprint | |||||
| Find out more about | Find out more about | ||||
| %a{ :href => '/how-the-council-election-works' } how the council election works. | %a{ :href => '/how-the-council-election-works' } how the council election works. | ||||