aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/alert_types.sql4
-rw-r--r--templates/emails/alert-problem-council12
-rw-r--r--templates/emails/alert-problem-ward13
3 files changed, 27 insertions, 2 deletions
diff --git a/db/alert_types.sql b/db/alert_types.sql
index ee71a05f8..7eac87ad0 100644
--- a/db/alert_types.sql
+++ b/db/alert_types.sql
@@ -41,7 +41,7 @@ values ('council_problems', '', '',
'New problems to {{COUNCIL}} on FixMyStreet', '/reports', 'The latest problems for {{COUNCIL}} reported by users',
'problem', 'problem.state in (\'confirmed\', \'fixed\') and (council like \'%\'||?||\'%\'
or council is null) and areas like \'%,\'||?||\',%\'', 'created desc',
- '{{title}}, {{confirmed}}', '/?id={{id}}', '{{detail}}', 'alert-problem'
+ '{{title}}, {{confirmed}}', '/?id={{id}}', '{{detail}}', 'alert-problem-council'
);
-- New problems within a particular ward sent to a particular council
@@ -55,7 +55,7 @@ values ('ward_problems', '', '',
'The latest problems for {{COUNCIL}} within {{WARD}} ward reported by users',
'problem', 'problem.state in (\'confirmed\', \'fixed\') and (council like \'%\'||?||\'%\'
or council is null) and areas like \'%,\'||?||\',%\'', 'created desc',
- '{{title}}, {{confirmed}}', '/?id={{id}}', '{{detail}}', 'alert-problem'
+ '{{title}}, {{confirmed}}', '/?id={{id}}', '{{detail}}', 'alert-problem-ward'
);
-- New problems within a particular voting area (ward, constituency, whatever)
diff --git a/templates/emails/alert-problem-council b/templates/emails/alert-problem-council
new file mode 100644
index 000000000..fc6c38f86
--- /dev/null
+++ b/templates/emails/alert-problem-council
@@ -0,0 +1,12 @@
+Subject: New problems reported to <?=$values['area_name']?> on FixMyStreet
+
+The following new problems have been reported to <?=$values['area_name']?>:
+
+<?=$values['data']?>
+
+--
+The FixMyStreet team
+
+To stop receiving emails when there are new problems reported to
+<?=$values['area_name']?>, please follow this link:
+<?=$values['unsubscribe_url']?>
diff --git a/templates/emails/alert-problem-ward b/templates/emails/alert-problem-ward
new file mode 100644
index 000000000..75475061a
--- /dev/null
+++ b/templates/emails/alert-problem-ward
@@ -0,0 +1,13 @@
+Subject: New problems reported to <?=$values['area_name']?> within <?=$values['ward_name']?> on FixMyStreet
+
+The following new problems have been reported to <?=$values['area_name']?>
+within <?=$values['ward_name']?>:
+
+<?=$values['data']?>
+
+--
+The FixMyStreet team
+
+To stop receiving emails when there are new problems reported to
+<?=$values['area_name']?> within <?=$values['ward_name']?>,
+please follow this link: <?=$values['unsubscribe_url']?>