aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
diff options
context:
space:
mode:
authormatthew <matthew>2008-09-19 17:47:19 +0000
committermatthew <matthew>2008-09-19 17:47:19 +0000
commit8134458890b56c427aaa7d4bfd77eb84dc0d0d6e (patch)
treef150e646bb2cb60f0f2212b1264948521cf84e39 /web/index.cgi
parent6708e7dd9b259207c613bb08b693d0ee5a1f2f0d (diff)
Alerts page works with X/Y as well as string lookup. Simpler link from
map page.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 608eae07e..415eea669 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: index.cgi,v 1.210 2008-09-19 10:24:55 matthew Exp $
+# $Id: index.cgi,v 1.211 2008-09-19 17:47:19 matthew Exp $
use strict;
use Standard;
@@ -682,9 +682,10 @@ sub display_location {
my $rss_title = _('RSS feed of recent local problems');
my $rss_alt = _('RSS feed');
my $u_pc = uri_escape($input{pc});
+ my $email_me_link = NewURL($q, -url=>'/alert', x=>$x, y=>$y, feed=>"local:$x:$y");
$out .= <<EOF;
<p id="alert_links_area">
- <a id="email_alert" href="/alert?pc=$u_pc;type=local;feed=local:$x:$y;alert=Subscribe">$email_me</a>
+ <a id="email_alert" href="$email_me_link">$email_me</a>
| <a href="/rss/$x,$y" id="rss_alert"><span>RSS feed</span> <img src="/i/feed.png" width="16" height="16" title="$rss_title" alt="$rss_alt" border="0" style="vertical-align: top"></a>
</p>
EOF