aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMartin Wright <martin@mysociety.org>2020-10-19 12:28:10 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-11-11 10:31:33 +0000
commit22b89e27ac4368bcc4e288bd1fe2faf53f13ac9e (patch)
tree06fed334ade0e002ef17b3f701237caf1336c87a /perllib/FixMyStreet
parentfb8e4d6f48c4354fc9cf071db287ead876fc0269 (diff)
[Bromley] Service images.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index e098815db..93dd35539 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -474,6 +474,24 @@ sub construct_bin_date {
return $date;
}
+sub image_for_service {
+ my ($self, $service_id) = @_;
+ my $base = '/cobrands/bromley/images/container-images';
+ my $images = {
+ 531 => "$base/refuse-black-sack",
+ 532 => "$base/refuse-black-sack",
+ 533 => "$base/large-communal-black",
+ 535 => "$base/kerbside-green-box-mix",
+ 536 => "$base/small-communal-mix",
+ 537 => "$base/kerbside-black-box-paper",
+ 541 => "$base/small-communal-paper",
+ 542 => "$base/food-green-caddy",
+ 544 => "$base/food-communal",
+ 545 => "$base/garden-waste-bin",
+ };
+ return $images->{$service_id};
+}
+
sub bin_services_for_address {
my $self = shift;
my $property = shift;