Browse Source

Added page titles to layout/views

tags/last-sinatra-version
Adrian Short 14 years ago
parent
commit
9804c0a60f
4 changed files with 5 additions and 4 deletions
  1. +1
    -1
      views/about.haml
  2. +1
    -1
      views/election.haml
  3. +2
    -1
      views/layout.haml
  4. +1
    -1
      views/parliament.haml

+ 1
- 1
views/about.haml View File

@@ -1,5 +1,5 @@
.grid_9 .grid_9
%h1 About this website
%h1= @page_title = "About this website"
%p %p
This website was designed and written by This website was designed and written by


+ 1
- 1
views/election.haml View File

@@ -1,5 +1,5 @@
.grid_9 .grid_9
%h1 How the council election works
%h1= @page_title = "How the council election works"
%p On 6 May 2010 you get to choose your local councillors and to help to decide who runs Sutton Council. %p On 6 May 2010 you get to choose your local councillors and to help to decide who runs Sutton Council.


+ 2
- 1
views/layout.haml View File

@@ -2,7 +2,8 @@
!!! !!!
%html %html
%head %head
%title Sutton Elections 6 May 2010
%title
= @page_title ? @page_title + " - Sutton Elections" : "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 => '/print.css', :media => 'print' }
%link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' } %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' }


+ 1
- 1
views/parliament.haml View File

@@ -1,6 +1,6 @@
.grid_9 .grid_9


%h1 How the parliament election works
%h1= @page_title = "How the parliament election works"
%p On 6 May 2010 you can vote for your local member of parliament and help to decide who governs the UK. %p On 6 May 2010 you can vote for your local member of parliament and help to decide who governs the UK.


Loading…
Cancel
Save