aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM Somerville <matthew-github@dracos.co.uk>2019-06-07 14:10:29 +0100
committerM Somerville <matthew-github@dracos.co.uk>2019-06-07 14:10:29 +0100
commit2f6b889481265549a729ad78f63fc8d1660c126f (patch)
tree6f5a4827be544755d8d1b384c27ecbe21eabcd88
parent0e0aeda3b71bbf73d1d10e6384fb83e8485047ec (diff)
[Hounslow] Use correct name on /reports & emails.
-rw-r--r--perllib/FixMyStreet/DB/Result/Comment.pm2
-rw-r--r--templates/email/hounslow/_council_reference.html2
-rw-r--r--templates/email/hounslow/_council_reference.txt2
-rw-r--r--templates/email/hounslow/_council_reference_alert_update.html2
-rw-r--r--templates/email/hounslow/_council_reference_alert_update.txt2
-rwxr-xr-xtemplates/web/base/reports/body.html15
6 files changed, 16 insertions, 9 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm
index 5d0253ef4..39f446549 100644
--- a/perllib/FixMyStreet/DB/Result/Comment.pm
+++ b/perllib/FixMyStreet/DB/Result/Comment.pm
@@ -229,6 +229,8 @@ sub meta_line {
$body = "$body <img src='/cobrands/bromley/favicon.png' alt=''>";
} elsif ($body eq 'Royal Borough of Greenwich') {
$body = "$body <img src='/cobrands/greenwich/favicon.png' alt=''>";
+ } elsif ($body eq 'Hounslow Borough Council') {
+ $body = 'Hounslow Highways';
}
}
my $cobrand_always_view_body_user = $c->cobrand->call_hook("always_view_body_contribute_details");
diff --git a/templates/email/hounslow/_council_reference.html b/templates/email/hounslow/_council_reference.html
index 56944f954..3b886a51e 100644
--- a/templates/email/hounslow/_council_reference.html
+++ b/templates/email/hounslow/_council_reference.html
@@ -1,4 +1,4 @@
[% IF problem.external_id ~%]
<p style="[% p_style %]">The report's reference number is <strong>[% problem.external_id %]</strong>.
- Please quote this if you need to contact the council about this report.</p>
+ Please quote this if you need to contact Hounslow Highways about this report.</p>
[%~ END %]
diff --git a/templates/email/hounslow/_council_reference.txt b/templates/email/hounslow/_council_reference.txt
index 3dd3f1e9f..ebd7d4588 100644
--- a/templates/email/hounslow/_council_reference.txt
+++ b/templates/email/hounslow/_council_reference.txt
@@ -1,2 +1,2 @@
[% IF problem.external_id %]The report's reference number is [% problem.external_id %]. Please quote this if
-you need to contact the council about this report.[% END %]
+you need to contact Hounslow Highways about this report.[% END %]
diff --git a/templates/email/hounslow/_council_reference_alert_update.html b/templates/email/hounslow/_council_reference_alert_update.html
index 56944f954..3b886a51e 100644
--- a/templates/email/hounslow/_council_reference_alert_update.html
+++ b/templates/email/hounslow/_council_reference_alert_update.html
@@ -1,4 +1,4 @@
[% IF problem.external_id ~%]
<p style="[% p_style %]">The report's reference number is <strong>[% problem.external_id %]</strong>.
- Please quote this if you need to contact the council about this report.</p>
+ Please quote this if you need to contact Hounslow Highways about this report.</p>
[%~ END %]
diff --git a/templates/email/hounslow/_council_reference_alert_update.txt b/templates/email/hounslow/_council_reference_alert_update.txt
index 3dd3f1e9f..ebd7d4588 100644
--- a/templates/email/hounslow/_council_reference_alert_update.txt
+++ b/templates/email/hounslow/_council_reference_alert_update.txt
@@ -1,2 +1,2 @@
[% IF problem.external_id %]The report's reference number is [% problem.external_id %]. Please quote this if
-you need to contact the council about this report.[% END %]
+you need to contact Hounslow Highways about this report.[% END %]
diff --git a/templates/web/base/reports/body.html b/templates/web/base/reports/body.html
index 8be72d632..02791ba3b 100755
--- a/templates/web/base/reports/body.html
+++ b/templates/web/base/reports/body.html
@@ -1,9 +1,14 @@
+[% SET body_name = body.name %]
+[% IF c.cobrand.moniker == 'hounslow' %]
+ [% SET body_name = 'Hounslow Highways' %]
+[% END %]
+
[% IF ward %]
- [% name = "$ward.name, $body.name"
+ [% name = "$ward.name, $body_name"
thing = loc('ward')
%]
[% ELSE %]
- [% name = body.name
+ [% name = body_name
thing = loc('council')
%]
[% END %]
@@ -41,15 +46,15 @@
<h1 id="reports_heading">
[% ward.name %]
</h1>
- <a href="[% body_url %]">[% body.name %]</a>
+ <a href="[% body_url %]">[% body_name %]</a>
[% ELSIF wards %]
<h1 id="reports_heading">
[% FOREACH w IN wards %][% w.name %][% IF NOT loop.last %], [% END %][% END %]
</h1>
- <a href="[% body_url %]">[% body.name %]</a>
+ <a href="[% body_url %]">[% body_name %]</a>
[% ELSE %]
<h1 id="reports_heading">
- [% body.name %]
+ [% body_name %]
</h1>
[% END %]