diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/BathNES.pm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/BathNES.pm b/perllib/FixMyStreet/Cobrand/BathNES.pm new file mode 100644 index 000000000..4200f8bd6 --- /dev/null +++ b/perllib/FixMyStreet/Cobrand/BathNES.pm @@ -0,0 +1,54 @@ +package FixMyStreet::Cobrand::BathNES; +use parent 'FixMyStreet::Cobrand::Whitelabel'; + +use strict; +use warnings; + +sub council_area_id { return 2551; } +sub council_area { return 'Bath and North East Somerset'; } +sub council_name { return 'Bath and North East Somerset Council'; } +sub council_url { return 'bathnes'; } + +sub contact_email { + my $self = shift; + return join( '@', 'fixmystreet', 'bathnes.gov.uk' ); +} + +sub example_places { + return ( 'BA1 1JQ', "Lansdown Grove" ); +} + +sub disambiguate_location { + my $self = shift; + my $string = shift; + + my $town = 'Bath'; + + return { + %{ $self->SUPER::disambiguate_location() }, + town => $town, + centre => '51.3559192103294,-2.47522827137605', + span => '0.166437921041471,0.429359043406088', + bounds => [ 51.2730478766607, -2.70792015294201, 51.4394857977022, -2.27856110953593 ], + }; +} + +sub pin_colour { + my ( $self, $p, $context ) = @_; + return 'grey' if $p->state eq 'not responsible'; + return 'green' if $p->is_fixed || $p->is_closed; + return 'red' if $p->state eq 'confirmed'; + return 'yellow'; +} + +sub send_questionnaires { + return 0; +} + +sub enable_category_groups { 1 } + +sub default_show_name { 0 } + +sub default_map_zoom { 3 } + +1; |