Переглянути джерело

Add new About page

tags/last-sinatra-version
Adrian Short 8 роки тому
джерело
коміт
da8f8c2d03
2 змінених файлів з 30 додано та 0 видалено
  1. +3
    -0
      app.rb
  2. +27
    -0
      views/about.haml

+ 3
- 0
app.rb Переглянути файл

@@ -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 Переглянути файл

@@ -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

Завантаження…
Відмінити
Зберегти