diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-06-12 16:28:31 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2014-09-16 15:07:19 +0000 |
commit | 359753aeca5ecb0f101bf6a63efa84d2570e885d (patch) | |
tree | fd32c802cc4ac68e3f327b481acc24d2982048f4 /perllib | |
parent | 1ca31d093403ce49092ffdbcfacfacee7eb55ba7 (diff) |
[East Sussex] initial work on cobrand and templates
- Get layout, including map working
- Identified major clash point for CSS
- Move eastsussex resources locally (in part to be able to override
clashing names like .container)
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/EastSussex.pm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/EastSussex.pm b/perllib/FixMyStreet/Cobrand/EastSussex.pm new file mode 100644 index 000000000..d15cfaa2e --- /dev/null +++ b/perllib/FixMyStreet/Cobrand/EastSussex.pm @@ -0,0 +1,38 @@ +package FixMyStreet::Cobrand::EastSussex; +use base 'FixMyStreet::Cobrand::UKCouncils'; + +use strict; +use warnings; + +sub council_id { return 2224; } +sub council_area { return 'East Sussex'; } +sub council_name { return 'East Sussex County Council'; } +sub council_url { return 'eastsussex'; } +# sub is_two_tier { return 1; } + +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 { + my $self = shift; + my $string = shift; + return { + %{ $self->SUPER::disambiguate_location() }, + town => 'East Sussex', + centre => '50.9413275309703,0.276320277101682', + span => '0.414030932264716,1.00374244745585', + bounds => [ 50.7333642759327, -0.135851370247794, 51.1473952081975, 0.867891077208056 ], + }; +} + +sub example_places { + return ( 'BN7 2LZ', 'North Street, Brighton' ); +} + +1; + |