From 9804c0a60fa41e5bbd76e279c31fd5d5d68cf46b Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 15 Apr 2010 01:34:49 +0100 Subject: [PATCH] Added page titles to layout/views --- views/about.haml | 2 +- views/election.haml | 2 +- views/layout.haml | 3 ++- views/parliament.haml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/views/about.haml b/views/about.haml index f24af47..bf7bba0 100644 --- a/views/about.haml +++ b/views/about.haml @@ -1,5 +1,5 @@ .grid_9 - %h1 About this website + %h1= @page_title = "About this website" %p This website was designed and written by diff --git a/views/election.haml b/views/election.haml index 49a0a0c..af4dc38 100644 --- a/views/election.haml +++ b/views/election.haml @@ -1,5 +1,5 @@ .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. diff --git a/views/layout.haml b/views/layout.haml index 981613c..c64b457 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -2,7 +2,8 @@ !!! %html %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 => '/print.css', :media => 'print' } %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/grid.css' } diff --git a/views/parliament.haml b/views/parliament.haml index 1d0c792..3e4f2b9 100644 --- a/views/parliament.haml +++ b/views/parliament.haml @@ -1,6 +1,6 @@ .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.