aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2007-09-11 15:29:42 +0000
committermatthew <matthew>2007-09-11 15:29:42 +0000
commit13fcf2a89c3841121a54010a30ec865bbea96d0f (patch)
tree51d99b07dd3dc3f7a482670e5c3eddf8682b9755
parenta38914df3e875859a9efaabe21e308d5e992c57b (diff)
Try and put area title in email alert.
-rw-r--r--db/alert_types.sql2
-rw-r--r--templates/emails/alert-problem-area13
2 files changed, 14 insertions, 1 deletions
diff --git a/db/alert_types.sql b/db/alert_types.sql
index 356f339d1..ee71a05f8 100644
--- a/db/alert_types.sql
+++ b/db/alert_types.sql
@@ -68,6 +68,6 @@ values ('area_problems', '', '',
'New problems within {{NAME}}\'s boundary on FixMyStreet', '/reports',
'The latest problems within {{NAME}}\'s boundary reported by users', 'problem',
'problem.state in (\'confirmed\', \'fixed\') and areas like \'%,\'||?||\',%\'', 'created desc',
- '{{title}}, {{confirmed}}', '/?id={{id}}', '{{detail}}', 'alert-problem'
+ '{{title}}, {{confirmed}}', '/?id={{id}}', '{{detail}}', 'alert-problem-area'
);
diff --git a/templates/emails/alert-problem-area b/templates/emails/alert-problem-area
new file mode 100644
index 000000000..7cf193143
--- /dev/null
+++ b/templates/emails/alert-problem-area
@@ -0,0 +1,13 @@
+Subject: New problems in <?=$values['area_name']?> on FixMyStreet
+
+The following new problems have been added within
+<?=$values['area_name']?>:
+
+<?=$values['data']?>
+
+--
+The FixMyStreet team
+
+To stop receiving emails when there are new problems in
+<?=$values['area_name']?>, please follow this link:
+<?=$values['unsubscribe_url']?>