diff options
-rw-r--r-- | db/alert_types.sql | 2 | ||||
-rw-r--r-- | templates/emails/alert-problem-area | 13 |
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']?> |