aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-06-14 14:04:53 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-17 14:35:05 +0100
commit4ff146e17c60b0d86bdb995f48ace6af0b16577c (patch)
tree6400ed920a10e05d17a010ab75232684668f61de
parente1edee8c566eb02ddaeedb9cbec68c65abfc64be (diff)
[Bristol] redirect national site categories
Add a message to various categories on the national site asking people to use a separate Bristol site to make reports.
-rw-r--r--web/cobrands/bristol/assets.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/web/cobrands/bristol/assets.js b/web/cobrands/bristol/assets.js
index b31f3c154..8a3b963a1 100644
--- a/web/cobrands/bristol/assets.js
+++ b/web/cobrands/bristol/assets.js
@@ -116,4 +116,21 @@ fixmystreet.assets.add(lighting_options, {
filter_value: 'SL: Sign'
});
+var redirects = {
+ "Abandoned vehicles": "https://www.bristol.gov.uk/streets-travel/abandoned-vehicles",
+ "Flytipping": "https://www.bristol.gov.uk/streets-travel/flytipping",
+ "Flyposting": "https://www.bristol.gov.uk/streets-travel/flyposting",
+ "Graffiti": "https://www.bristol.gov.uk/streets-travel/graffiti",
+ "Dog fouling": "https://www.bristol.gov.uk/streets-travel/dog-fouling",
+ "Street cleaning": "https://www.bristol.gov.uk/streets-travel/street-that-needs-cleaning"
+};
+
+$.each(redirects, function(name, value) {
+ fixmystreet.message_controller.register_category({
+ body: common_options.body,
+ category: name,
+ message: 'If you wish to report an issue with ' + name + ', please use <a href="' + value + '">this service</a>.'
+ });
+});
+
})();