aboutsummaryrefslogtreecommitdiffstats
path: root/templates/email/default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/email/default')
-rw-r--r--templates/email/default/_email_comment_list.html2
-rw-r--r--templates/email/default/_email_comment_list.txt2
-rw-r--r--templates/email/default/submit-example.txt2
-rw-r--r--templates/email/default/submit.html8
-rw-r--r--templates/email/default/submit.txt5
5 files changed, 16 insertions, 3 deletions
diff --git a/templates/email/default/_email_comment_list.html b/templates/email/default/_email_comment_list.html
index 346efadfb..fe6cd5c4c 100644
--- a/templates/email/default/_email_comment_list.html
+++ b/templates/email/default/_email_comment_list.html
@@ -5,7 +5,7 @@
<img style="[% list_item_photo_style %]" src="[% inline_image(update.get_first_image_fp) %]" alt="">
</a>
[%~ END %]
- [% update.item_text | html_para | replace('<p>', '<p style="' _ list_item_p_style _ '">') %]
+ [% email_sanitize_html(update) | html_para | replace('<p>', '<p style="' _ list_item_p_style _ '">') %]
<p style="[% list_item_date_style %]">
[%~ update.item_name | html IF update.item_name AND NOT update.item_anonymous -%]
[% '(' _ cobrand.prettify_dt(update.confirmed) _ ') ' IF cobrand.include_time_in_update_alerts -%]
diff --git a/templates/email/default/_email_comment_list.txt b/templates/email/default/_email_comment_list.txt
index dbf00640f..3e01580c3 100644
--- a/templates/email/default/_email_comment_list.txt
+++ b/templates/email/default/_email_comment_list.txt
@@ -1,7 +1,7 @@
[% FOR row IN data -%]
[% row.item_name _ ' : ' IF row.item_name AND NOT row.item_anonymous -%]
[% '(' _ cobrand.prettify_dt(row.confirmed) _ ') ' IF cobrand.include_time_in_update_alerts -%]
-[% row.item_text %]
+[% email_sanitize_text(row) %]
------
diff --git a/templates/email/default/submit-example.txt b/templates/email/default/submit-example.txt
index 1d9db23d3..8927914d5 100644
--- a/templates/email/default/submit-example.txt
+++ b/templates/email/default/submit-example.txt
@@ -46,7 +46,7 @@ Replies to this email will go to the user who submitted the problem.
Yours,
The FixMyStreet team
-This message was sent via FixMyStreet, a project of UKCOD,
+This message was sent via FixMyStreet, a project of mySociety,
registered charity number 1076346. If there is a more appropriate
email address for messages about 'Potholes', please let us know by
visiting <https://www.fixmystreet.com/contact>. This will help
diff --git a/templates/email/default/submit.html b/templates/email/default/submit.html
index 0fed5770f..e08a31b5a 100644
--- a/templates/email/default/submit.html
+++ b/templates/email/default/submit.html
@@ -49,6 +49,14 @@ of a local problem that they believe might require your attention.</p>
<h2 style="[% h2_style %]">[% report.title | html %]</h2>
<p style="[% secondary_p_style %]">[% report.category | html %]</p>
<p style="[% secondary_p_style %]">[% report.detail | html %]</p>
+ [% IF report.get_extra_fields %]
+ <p style="[% secondary_p_style %]">
+ [%~ FOR field IN report.get_extra_fields %][% IF field.value %]
+ [% field.description %]: [% field.value %]
+ [% IF NOT loop.last %]<br>[% END %]
+ [%~ END %][% END %]
+ </p>
+ [% END %]
<p style="[% secondary_p_style %]">
<strong>Location:</strong>
<a href="[% osm_url %]" title="View OpenStreetMap of this location">
diff --git a/templates/email/default/submit.txt b/templates/email/default/submit.txt
index f08e723a8..b380825e4 100644
--- a/templates/email/default/submit.txt
+++ b/templates/email/default/submit.txt
@@ -25,6 +25,11 @@ Subject: [% report.title %]
Details: [% report.detail %]
+[% FOR field IN report.get_extra_fields %][% IF field.value ~%]
+[% field.description %]: [% field.value %]
+
+[% END %][% END ~%]
+
Latitude: [% report.latitude %]
Longitude: [% report.longitude %]