aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-05 14:13:40 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-05 14:13:40 +0100
commitc245810f3b2549dfeded4511cd4ec1b13e5bdfd3 (patch)
treede7edac19a3bb2365b8af010f27ed4c37606409c
parentd98932ca12742253938a9dcad8c36c4cbd227db7 (diff)
do not put postcode in alert page title
-rw-r--r--t/app/controller/alert.t2
-rw-r--r--templates/web/default/alert/list.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/t/app/controller/alert.t b/t/app/controller/alert.t
index d644c4f78..25feaf20d 100644
--- a/t/app/controller/alert.t
+++ b/t/app/controller/alert.t
@@ -21,7 +21,7 @@ $mech->content_contains('Local RSS feeds and email alerts');
$mech->content_contains('html lang="en-gb"');
$mech->get_ok('/alert/list?pc=ZZ99ZY');
-$mech->title_like(qr/^Local RSS feeds and email alerts for ZZ9&nbsp;9ZY/);
+$mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Local RSS feeds and email alerts for ZZ9&nbsp;9ZY');
$mech->content_contains('html lang="en-gb"');
diff --git a/templates/web/default/alert/list.html b/templates/web/default/alert/list.html
index 4408a931a..e0aefdec0 100644
--- a/templates/web/default/alert/list.html
+++ b/templates/web/default/alert/list.html
@@ -1,9 +1,11 @@
[% title = loc('Local RSS feeds and email alerts') %]
+
+[% INCLUDE 'header.html', title => title %]
+
[% IF pretty_pc %]
[% title = tprintf( loc('Local RSS feeds and email alerts for %s'), pretty_pc ) %]
[% END %]
-[% INCLUDE 'header.html', title => title %]
<h1>[% title %]</h1>