Browse Source

Add new About page

tags/last-sinatra-version
Adrian Short 8 years ago
parent
commit
da8f8c2d03
2 changed files with 30 additions and 0 deletions
  1. +3
    -0
      app.rb
  2. +27
    -0
      views/about.haml

+ 3
- 0
app.rb View File

@@ -341,6 +341,9 @@ end
# @stations = PollingStation.all
# haml :pollingstations
# end
get '/about' do
haml :about
end

not_found do
haml :not_found


+ 27
- 0
views/about.haml View File

@@ -0,0 +1,27 @@
%h1 About

%p
This site is designed by
%a{ :href => "https://adrianshort.org/" }
Adrian Short
\. The code is on
%a{ :href => 'https://github.com/adrianshort/suttonelections' }
GitHub

%p
It is powered by data from
%a{ :href => "http://www.sutton.gov.uk/" }
Sutton Council,
%a{ :href => "http://data.london.gov.uk/" }
London Datastore
and
%a{ :href => "http://www.ordnancesurvey.co.uk/business-and-government/products/code-point-open.html" }
Ordnance Survey.

%ul
%li.pure-menu-item
%a{ :href => '/how-the-parliament-election-works' }
About parliamentary elections
%li.pure-menu-item
%a{ :href => '/how-the-council-election-works' }
About council elections

Loading…
Cancel
Save