From e2cc014a4dc1728d78cbf8e076f1a15645d1e6e7 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 22 Mar 2012 13:13:26 +0000 Subject: Initial creation of Bromley cobrand. --- perllib/FixMyStreet/Cobrand/Bromley.pm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 perllib/FixMyStreet/Cobrand/Bromley.pm (limited to 'perllib/FixMyStreet/Cobrand/Bromley.pm') diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm new file mode 100644 index 000000000..4caeb16b6 --- /dev/null +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -0,0 +1,29 @@ +package FixMyStreet::Cobrand::Bromley; +use base 'FixMyStreet::Cobrand::UKCouncils'; + +use strict; +use warnings; + +sub council_id { return 2482; } +sub council_area { return 'Bromley'; } +sub council_name { return 'Bromley Council'; } +sub council_url { return 'bromley'; } + +sub path_to_web_templates { + my $self = shift; + return [ + FixMyStreet->path_to( 'templates/web', $self->moniker )->stringify, + FixMyStreet->path_to( 'templates/web/fixmystreet' )->stringify + ]; +} + +sub disambiguate_location { + return { + centre => '51.366836,0.040623', + span => '0.154963,0.24347', + bounds => [ '51.289355,-0.081112', '51.444318,0.162358' ], + }; +} + +1; + -- cgit v1.2.3 From 8ce92aa814d69fbdb221483450b95ca2d9267bce Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 22 Mar 2012 17:29:49 +0000 Subject: Cobrand specific example front page placeholder, start of layout tweaks, fix geocoding. --- perllib/FixMyStreet/Cobrand/Bromley.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'perllib/FixMyStreet/Cobrand/Bromley.pm') diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index 4caeb16b6..75174b638 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -18,12 +18,18 @@ sub path_to_web_templates { } sub disambiguate_location { + my $self = shift; return { + %{ $self->SUPER::disambiguate_location() }, centre => '51.366836,0.040623', span => '0.154963,0.24347', bounds => [ '51.289355,-0.081112', '51.444318,0.162358' ], }; } +sub example_places { + return ( 'BR1 3UH', 'Glebe Rd, Bromley' ); +} + 1; -- cgit v1.2.3