diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2015-03-25 17:13:53 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2015-03-31 08:57:16 +0000 |
commit | c6f9498c79527fbee3cdb1a53f65524c716f20e9 (patch) | |
tree | 0088d7245b6a7153a774ca26fb7a8dd0030e2259 | |
parent | 7d30cd077274e52d78a982b59f185035ba93cb57 (diff) |
[Zurich] change jurisdiction_id in Open311 example
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Base.pm | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 5 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FiksGataMi.pm | 4 | ||||
-rw-r--r-- | templates/web/base/open311/index.html | 2 |
4 files changed, 13 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Base.pm b/perllib/FixMyStreet/Cobrand/Base.pm index 4941712b2..5a9842233 100644 --- a/perllib/FixMyStreet/Cobrand/Base.pm +++ b/perllib/FixMyStreet/Cobrand/Base.pm @@ -51,5 +51,8 @@ sub is_default { return $self->moniker eq 'default'; } +# NB: this Base class is for 'meta' features. To add base methods for all cobrands, +# you may want to look at FMS::Cobrand::Default instead! + 1; diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index fa3d856bc..abf5d4fb5 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -898,5 +898,10 @@ sub get_country_for_ip_address { return 0; } +sub jurisdiction_id_example { + my $self = shift; + return $self->moniker; +} + 1; diff --git a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm index 34cb2f719..7b175f371 100644 --- a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm +++ b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm @@ -223,4 +223,8 @@ sub reports_body_check { } } +sub jurisdiction_id_example { + 'fiksgatami.no'; +} + 1; diff --git a/templates/web/base/open311/index.html b/templates/web/base/open311/index.html index df36bcfc9..502b1a69a 100644 --- a/templates/web/base/open311/index.html +++ b/templates/web/base/open311/index.html @@ -95,7 +95,7 @@ for council problem-reporting systems.</p> <ul> -[% jurisdiction_id = 'fiksgatami.no' %] +[% jurisdiction_id = c.cobrand.jurisdiction_id_example %] [% examples = [ { url = c.cobrand.base_url _ "/open311/v2/discovery.xml?jurisdiction_id=$jurisdiction_id", |