diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-10-08 16:07:03 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-10-08 16:07:03 +0100 |
commit | 0a19721641de51a6b1e1ba79fd84bcd9ea62fdb2 (patch) | |
tree | 91c72374be29bae10cb199fc9c98c487a1e5833e /templates | |
parent | 50b8576284de8ebb1fc59bdeb4b6f98e58358333 (diff) |
Look for gone body template, not hard-code cobrand
This means other cobrands could use the same mechanism.
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/web/base/reports/body.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/reports/body.html b/templates/web/base/reports/body.html index ffb5d8838..dfaa98d6a 100755 --- a/templates/web/base/reports/body.html +++ b/templates/web/base/reports/body.html @@ -43,8 +43,8 @@ [% INCLUDE '_hart_hants_note.html' %] [% END %] -[% IF NOT body.areas.size AND c.cobrand.moniker == 'fixmystreet' %] - [% INCLUDE 'reports/_body_gone.html' %] +[% IF NOT body.areas.size %] + [% TRY %][% INCLUDE 'reports/_body_gone.html' %][% CATCH file %][% END %] [% ELSE %] [% INCLUDE 'reports/_rss.html' %] [% END %] |