From baa0fe5f1449e5f87179c2ae683a8288a74bcec8 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 16 Dec 2016 10:49:24 +0000 Subject: Fix flagging wording template link. f58ce6c4 changed the base contact template to include a link to a fixmystreet.com specific page. Revert this back and make the change in the correct cobrand only. --- t/app/controller/contact.t | 2 +- templates/web/base/contact/index.html | 8 ++------ templates/web/base/contact/unsuitable-text.html | 3 +++ templates/web/base/report/display_tools.html | 4 +++- templates/web/fixmystreet.com/contact/unsuitable-text.html | 7 +++++++ 5 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 templates/web/base/contact/unsuitable-text.html create mode 100644 templates/web/fixmystreet.com/contact/unsuitable-text.html diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t index aabf915ad..7c2769b9c 100644 --- a/t/app/controller/contact.t +++ b/t/app/controller/contact.t @@ -99,7 +99,7 @@ for my $test ( $mech->content_contains( $test->{update}->{text} ); } else { $mech->get_ok( '/contact?id=' . $problem->id ); - $mech->content_contains('Does this report break our'); + $mech->content_contains('reporting the following problem'); $mech->content_contains( $test->{title} ); $mech->content_contains( $test->{meta} ); } diff --git a/templates/web/base/contact/index.html b/templates/web/base/contact/index.html index a66d183b6..f24f8afea 100644 --- a/templates/web/base/contact/index.html +++ b/templates/web/base/contact/index.html @@ -40,16 +40,12 @@ [% ELSIF problem %] -

[% IF moderation_complaint %] - [% loc('You are complaining that this problem report was unnecessarily moderated:') %] +

[% loc('You are complaining that this problem report was unnecessarily moderated:') %]

[% ELSE %] - [% loc('Does this report break our House Rules? Use this form to let us know.') %] -

- [% loc('If you are trying to make a new report, please go to the front page and follow the instructions.') %] + [% INCLUDE 'contact/unsuitable-text.html' %] [% END %] -

[% problem.title_safe | html %]

diff --git a/templates/web/base/contact/unsuitable-text.html b/templates/web/base/contact/unsuitable-text.html new file mode 100644 index 000000000..12137c818 --- /dev/null +++ b/templates/web/base/contact/unsuitable-text.html @@ -0,0 +1,3 @@ +

+ [% loc('You are reporting the following problem report for being abusive, containing personal information, or similar:') %] +

diff --git a/templates/web/base/report/display_tools.html b/templates/web/base/report/display_tools.html index 8a756a948..fb337df59 100644 --- a/templates/web/base/report/display_tools.html +++ b/templates/web/base/report/display_tools.html @@ -6,7 +6,9 @@ [% ELSIF c.cobrand.moniker != 'zurich' %] -
  • [% loc('Unsuitable?' ) %]
  • +
  • [% + c.cobrand.moniker == 'fixmystreet' ? 'Unsuitable?' : loc('Report abuse') + %]
  • [% END %] [% IF c.cobrand.moniker != 'zurich' %]
  • [% loc('Get updates' ) %]
  • diff --git a/templates/web/fixmystreet.com/contact/unsuitable-text.html b/templates/web/fixmystreet.com/contact/unsuitable-text.html new file mode 100644 index 000000000..92642aec7 --- /dev/null +++ b/templates/web/fixmystreet.com/contact/unsuitable-text.html @@ -0,0 +1,7 @@ +

    + [% loc('Does this report break our House Rules? Use this form to let us know.') %] +

    + +

    + [% loc('If you are trying to make a new report, please go to the front page and follow the instructions.') %] +

    -- cgit v1.2.3