aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/email/bathnes/other-updated.html28
-rw-r--r--templates/email/bathnes/other-updated.txt19
l---------templates/email/buckinghamshire/_council_reference_alert_update.html1
l---------templates/email/buckinghamshire/_council_reference_alert_update.txt1
-rw-r--r--templates/email/buckinghamshire/alert-update.html4
-rw-r--r--templates/email/buckinghamshire/alert-update.txt2
-rw-r--r--templates/email/buckinghamshire/other-reported.html (renamed from templates/email/fixmystreet.com/other-reported.html)2
-rw-r--r--templates/email/default/alert-update.html3
-rw-r--r--templates/email/default/alert-update.txt2
-rw-r--r--templates/email/default/other-reported.html9
-rw-r--r--templates/email/default/other-reported.txt2
-rw-r--r--templates/email/fixmystreet.com/other-reported.txt29
l---------templates/email/lincolnshire/_council_reference_alert_update.html1
l---------templates/email/lincolnshire/_council_reference_alert_update.txt1
14 files changed, 19 insertions, 85 deletions
diff --git a/templates/email/bathnes/other-updated.html b/templates/email/bathnes/other-updated.html
deleted file mode 100644
index fb68c86ee..000000000
--- a/templates/email/bathnes/other-updated.html
+++ /dev/null
@@ -1,28 +0,0 @@
-[%
-
-email_summary = "Thanks for logging your update";
-email_columns = 2;
-
-PROCESS '_email_settings.html';
-INCLUDE '_email_top.html';
-
-%]
-
-<th style="[% td_style %][% primary_column_style %]" id="primary_column">
- [% start_padded_box %]
- <h1 style="[% h1_style %]">Your update has been&nbsp;logged</h1>
- <p style="[% p_style %]">Your update has been logged on [% site_name %].</p>
- <p style="[% p_style %]">The report's reference number is <strong>[% update.problem_id %]</strong>.
- Please quote this if you need to contact the council about this report.</p>
- <p style="margin: 20px auto; text-align: center">
- <a style="[% button_style %]" href="[% cobrand.base_url_for_report(problem) %][% update.url %]">View my update</a>
- </p>
- [% end_padded_box %]
-</th>
-[% WRAPPER '_email_sidebar.html'
- object = update
- report = problem %]
- <p style="[% secondary_p_style %]">[% update.text | html %]</p>
-[% END %]
-
-[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/bathnes/other-updated.txt b/templates/email/bathnes/other-updated.txt
deleted file mode 100644
index 57d5f44cf..000000000
--- a/templates/email/bathnes/other-updated.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Subject: Your update has been logged
-
-Hello [% update.name %],
-
-Your update has been logged on [% site_name %]:
-
-[% cobrand.base_url_for_report(problem) %][% update.url %]
-
-The report's reference number is [% update.problem_id %]. Please quote this if
-you need to contact the council about this report.
-
-Your update reads:
-
-[% update.text %]
-
-[% signature %]
-
-This email was sent automatically, from an unmonitored email account - so
-please do not reply to it.
diff --git a/templates/email/buckinghamshire/_council_reference_alert_update.html b/templates/email/buckinghamshire/_council_reference_alert_update.html
new file mode 120000
index 000000000..b381640fa
--- /dev/null
+++ b/templates/email/buckinghamshire/_council_reference_alert_update.html
@@ -0,0 +1 @@
+_council_reference.html \ No newline at end of file
diff --git a/templates/email/buckinghamshire/_council_reference_alert_update.txt b/templates/email/buckinghamshire/_council_reference_alert_update.txt
new file mode 120000
index 000000000..cb7672557
--- /dev/null
+++ b/templates/email/buckinghamshire/_council_reference_alert_update.txt
@@ -0,0 +1 @@
+_council_reference.txt \ No newline at end of file
diff --git a/templates/email/buckinghamshire/alert-update.html b/templates/email/buckinghamshire/alert-update.html
index 48e6871c2..8831fd379 100644
--- a/templates/email/buckinghamshire/alert-update.html
+++ b/templates/email/buckinghamshire/alert-update.html
@@ -19,9 +19,9 @@ INCLUDE '_email_top.html';
[% end_padded_box %]
</th>
[% WRAPPER '_email_sidebar.html' object = report %]
- <h2 style="[% h2_style %]">[% title | html %]</h2>
+ <h2 style="[% h2_style %]">[% title %]</h2>
<p style="[% secondary_p_style %]">[% report.detail | html %]</p>
- [%~ INCLUDE '_council_reference.html' problem=report p_style=secondary_p_style %]
+ [% TRY %][% INCLUDE '_council_reference_alert_update.html' problem=report p_style=secondary_p_style %][% CATCH file %][% END %]
[% END %]
[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/buckinghamshire/alert-update.txt b/templates/email/buckinghamshire/alert-update.txt
index a77f3a2a0..34b95683f 100644
--- a/templates/email/buckinghamshire/alert-update.txt
+++ b/templates/email/buckinghamshire/alert-update.txt
@@ -13,7 +13,7 @@ If you would like to view or reply to these updates, please visit the following
[% problem_url %]
-[% INCLUDE '_council_reference.txt' problem=report %]
+[% TRY %][% INCLUDE '_council_reference_alert_update.txt' problem=report %][% CATCH file %][% END %]
This email was sent automatically, from an unmonitored email account - so
please do not reply to it.
diff --git a/templates/email/fixmystreet.com/other-reported.html b/templates/email/buckinghamshire/other-reported.html
index 0fcb46e41..fe03376f5 100644
--- a/templates/email/fixmystreet.com/other-reported.html
+++ b/templates/email/buckinghamshire/other-reported.html
@@ -28,4 +28,4 @@ of report, so it will instead be sent to [% report.body %].</p>
<p style="[% secondary_p_style %]">[% report.detail | html %]</p>
[% END %]
-[% INCLUDE '_email_bottom.html' %] \ No newline at end of file
+[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/default/alert-update.html b/templates/email/default/alert-update.html
index 7ebc9910c..082f5e369 100644
--- a/templates/email/default/alert-update.html
+++ b/templates/email/default/alert-update.html
@@ -18,8 +18,9 @@ INCLUDE '_email_top.html';
[% end_padded_box %]
</th>
[% WRAPPER '_email_sidebar.html' object = report %]
- <h2 style="[% h2_style %]">[% report.title | html %]</h2>
+ <h2 style="[% h2_style %]">[% title %]</h2>
<p style="[% secondary_p_style %]">[% report.detail | html %]</p>
+ [% TRY %][% INCLUDE '_council_reference_alert_update.html' problem=report p_style=secondary_p_style %][% CATCH file %][% END %]
[% END %]
[% INCLUDE '_email_bottom.html' %]
diff --git a/templates/email/default/alert-update.txt b/templates/email/default/alert-update.txt
index 2883fee5e..952b2dbca 100644
--- a/templates/email/default/alert-update.txt
+++ b/templates/email/default/alert-update.txt
@@ -13,6 +13,8 @@ If you would like to view or reply to these updates, please visit the following
[% problem_url %]
+[% TRY %][% INCLUDE '_council_reference_alert_update.txt' problem=report %][% CATCH file %][% END %]
+
This email was sent automatically, from an unmonitored email account - so
please do not reply to it.
diff --git a/templates/email/default/other-reported.html b/templates/email/default/other-reported.html
index 5435e735a..fe03376f5 100644
--- a/templates/email/default/other-reported.html
+++ b/templates/email/default/other-reported.html
@@ -11,12 +11,13 @@ INCLUDE '_email_top.html';
<th style="[% td_style %][% primary_column_style %]" id="primary_column">
[% start_padded_box %]
<h1 style="[% h1_style %]">Your report has been&nbsp;logged</h1>
- <p style="[% p_style %]">Your report to [% report.body %] has been logged on [% site_name %].
+ <p style="[% p_style %]">Your report to [% report.body %] has been logged on [% site_name %].</p>
[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %]
-Please note that [% c.cobrand.council_name %] is not responsible for this type
-of report, so it will instead be sent to [% report.body %].
+<p style="[% p_style %]">Please note that [% c.cobrand.council_name %] is not responsible for this type
+of report, so it will instead be sent to [% report.body %].</p>
+[% ELSE %]
+[% TRY %][% INCLUDE '_council_reference.html' problem=report %][% CATCH file %][% END %]
[% END %]
- </p>
<p style="margin: 20px auto; text-align: center">
<a style="[% button_style %]" href="[% cobrand.base_url_for_report(report) %][% report.url %]">View my report</a>
</p>
diff --git a/templates/email/default/other-reported.txt b/templates/email/default/other-reported.txt
index 559b0933b..1dc8d0b44 100644
--- a/templates/email/default/other-reported.txt
+++ b/templates/email/default/other-reported.txt
@@ -7,6 +7,8 @@ Your report to [% report.body %] has been logged on [% site_name %].
[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %]
Please note that [% c.cobrand.council_name %] is not responsible for this type
of report, so it will instead be sent to [% report.body %].
+[% ELSE %]
+[% TRY %][% INCLUDE '_council_reference.txt' problem=report %][% CATCH file %][% END %]
[% END %]
It is available to view at:
diff --git a/templates/email/fixmystreet.com/other-reported.txt b/templates/email/fixmystreet.com/other-reported.txt
deleted file mode 100644
index 1dc8d0b44..000000000
--- a/templates/email/fixmystreet.com/other-reported.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-Subject: Your report has been logged: [% report.title %]
-
-Hello [% report.name %],
-
-Your report to [% report.body %] has been logged on [% site_name %].
-
-[% IF c.cobrand.is_council && !c.cobrand.owns_problem( report ) %]
-Please note that [% c.cobrand.council_name %] is not responsible for this type
-of report, so it will instead be sent to [% report.body %].
-[% ELSE %]
-[% TRY %][% INCLUDE '_council_reference.txt' problem=report %][% CATCH file %][% END %]
-[% END %]
-
-It is available to view at:
-
-[% cobrand.base_url_for_report(report) %][% report.url %]
-
-Your report has the title:
-
-[% report.title %]
-
-And details:
-
-[% report.detail %]
-
-[% signature %]
-
-This email was sent automatically, from an unmonitored email account - so
-please do not reply to it.
diff --git a/templates/email/lincolnshire/_council_reference_alert_update.html b/templates/email/lincolnshire/_council_reference_alert_update.html
new file mode 120000
index 000000000..b381640fa
--- /dev/null
+++ b/templates/email/lincolnshire/_council_reference_alert_update.html
@@ -0,0 +1 @@
+_council_reference.html \ No newline at end of file
diff --git a/templates/email/lincolnshire/_council_reference_alert_update.txt b/templates/email/lincolnshire/_council_reference_alert_update.txt
new file mode 120000
index 000000000..cb7672557
--- /dev/null
+++ b/templates/email/lincolnshire/_council_reference_alert_update.txt
@@ -0,0 +1 @@
+_council_reference.txt \ No newline at end of file