From 2cf0f5ff5311dbfece364ae7a97aa16afa04b162 Mon Sep 17 00:00:00 2001 From: Chris Mytton Date: Mon, 13 Jan 2025 19:18:14 +0000 Subject: [PATCH] [Gloucester] Configure cobrand --- perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 1 + perllib/FixMyStreet/Cobrand/Gloucester.pm | 22 +++++++++++----------- templates/web/gloucester/around/intro.html | 2 ++ 3 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 templates/web/gloucester/around/intro.html diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index 8cac7dab95..d60c6f15ad 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -602,6 +602,7 @@ sub reopening_disallowed { return 1 if $problem->to_body_named("Merton") && $c->user_exists && (!$c->user->from_body || $c->user->from_body->get_column('name') ne "Merton Council"); return 1 if $problem->to_body_named("Northumberland") && $c->user_exists && (!$c->user->from_body || $c->user->from_body->get_column('name') ne "Northumberland County Council"); return 1 if $problem->to_body_named("Gloucestershire") && $c->user_exists && (!$c->user->from_body || $c->user->from_body->get_column('name') ne "Gloucestershire County Council"); + return 1 if $problem->to_body_named("Gloucester") && $c->user_exists && (!$c->user->from_body || $c->user->from_body->get_column('name') ne "Gloucester City Council"); return $self->next::method($problem); } diff --git a/perllib/FixMyStreet/Cobrand/Gloucester.pm b/perllib/FixMyStreet/Cobrand/Gloucester.pm index 3bfc693007..0289684fc3 100644 --- a/perllib/FixMyStreet/Cobrand/Gloucester.pm +++ b/perllib/FixMyStreet/Cobrand/Gloucester.pm @@ -46,22 +46,14 @@ sub allow_anonymous_reports { 'button' } =cut sub privacy_policy_url { - 'https://www.gloucester.gov.uk/council-and-democracy/data-protection/privacy-notices/gloucester-county-council-general-privacy-statement/gloucester-county-council-general-privacy-statement/' + 'https://www.gloucester.gov.uk/about-the-council/data-protection-and-freedom-of-information/data-protection/' } -=item * Users can not reopen reports +=item * Doesn't allow the reopening of reports =cut -sub reopening_disallowed { - my ($self, $problem) = @_; - - # Only staff can reopen reports. - my $c = $self->{c}; - my $user = $c->user; - return 0 if ($c->user_exists && $user->from_body && $user->from_body->cobrand_name eq $self->council_name); - return 1; -} +sub reopening_disallowed { 1 } =item * We do not send questionnaires. @@ -69,6 +61,14 @@ sub reopening_disallowed { sub send_questionnaires { 0 } +=item * Override the default text for entering a postcode or street name + +=cut + +sub enter_postcode_text { + return 'Enter a Gloucester postcode or street name'; +} + =item * TODO: Don't show reports before the go-live date =cut diff --git a/templates/web/gloucester/around/intro.html b/templates/web/gloucester/around/intro.html new file mode 100644 index 0000000000..78cee8b6e3 --- /dev/null +++ b/templates/web/gloucester/around/intro.html @@ -0,0 +1,2 @@ +

Report a problem on a street in your area

+

You can also view other reported issues.