aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/Buckinghamshire.pm2
-rw-r--r--templates/web/fixmystreet-uk-councils/report/new/unresponsive_body.html20
-rw-r--r--web/js/map-OpenLayers.js2
3 files changed, 23 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
index ef9848f79..095e80604 100644
--- a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
@@ -140,6 +140,8 @@ sub open311_contact_meta_override {
sub process_open311_extras {
my ($self, $c, $body, $extra) = @_;
+ return unless $c->stash->{report}; # Don't care about updates
+
$self->flytipping_body_fix(
$c->stash->{report},
$c->get_param('road-placement'),
diff --git a/templates/web/fixmystreet-uk-councils/report/new/unresponsive_body.html b/templates/web/fixmystreet-uk-councils/report/new/unresponsive_body.html
new file mode 100644
index 000000000..80c8cc138
--- /dev/null
+++ b/templates/web/fixmystreet-uk-councils/report/new/unresponsive_body.html
@@ -0,0 +1,20 @@
+[%
+SET first = body_id.keys.first; # Might be more than one, but showing one will do
+SET soon = bodies.$first.name == 'Northamptonshire County Council' %]
+<div class="box-warning">
+ <h1>Important message</h1>
+ <p>
+ <span class="unresponsive-council">[% bodies.$first.name %]</span> doesn’t currently accept
+ [% IF soon %]
+ FixMyStreet reports – though it will do so soon.
+ [% ELSE %]
+ [% IF category %]
+ <span class="refused-category">[% category | html %]</span>
+ [% END %]
+ reports from third party reporting sites such as FixMyStreet.
+ [% END %]
+ </p>
+ <p>We can make your report public, but [% 'at the moment' IF soon %] we can’t send it to
+ [% IF bodies.size > 1 %] that [% ELSE %] the [% END %] council.</p>
+ <a href="https://www.fixmystreet.com/unresponsive?body=[% first %][% IF category %];category=[% category | uri %][% END %]" class="btn">[% soon ? 'Find out more' : 'What can I do instead?' %]</a>
+</div>
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index a18741049..927067737 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -491,7 +491,7 @@ $.extend(fixmystreet.utils, {
} else {
delete qs.p;
}
- update_history(new_url, {
+ update_history(qs, {
page_change: { 'page': page, 'show_old_reports': show_old_reports }
});
}