diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-11-25 17:44:05 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-16 10:15:17 +0000 |
commit | fddf7f9585e50a60acca01b84bc8f9cfc267dd0b (patch) | |
tree | c7b6d9e7bc457d8ff4b0883dd62ef9e2876b7f6c /perllib/FixMyStreet/Cobrand/Base.pm | |
parent | e1f11deee821dd6540a76966731c94d31effa826 (diff) |
Add offline support of static files/fallback page.
Use a list to store JavaScript files, so it can be shared
between the HTML footer and the appcache manifest.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Base.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Base.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Base.pm b/perllib/FixMyStreet/Cobrand/Base.pm index 5a9842233..a9eed0018 100644 --- a/perllib/FixMyStreet/Cobrand/Base.pm +++ b/perllib/FixMyStreet/Cobrand/Base.pm @@ -38,6 +38,20 @@ sub moniker { return $last_part; } +=head2 asset_moniker + + $moniker = $cobrand_class->asset_moniker(); + +Same as moniker, except for the cobrand with the 'fixmystreet' moniker, when it +returns 'fixmystreet.com', as to avoid confusion that's where its assets are. + +=cut + +sub asset_moniker { + my $self = shift; + return $self->moniker eq 'fixmystreet' ? 'fixmystreet.com' : $self->moniker; +} + =head2 is_default $bool = $cobrand->is_default(); |