[% IF c.cobrand.moniker == 'hounslow' %] [% SET can_display_external_id = problem.external_id AND c.user_exists AND c.user.belongs_to_body(problem.bodies_str) %] [% ELSE %] [% SET can_display_external_id = problem.can_display_external_id %] [% END %] [% SET duration_clause = problem.duration_string %]

[% duration_clause %][% IF duration_clause %]. [% END %] [%- IF can_display_external_id %] [%- IF c.cobrand.moniker == 'hounslow' %] [%- tprintf('Reference: %s', problem.external_id) %]. [%- ELSIF c.cobrand.moniker == 'isleofwight' %] [%- tprintf('Enquiry ref: %s', problem.external_id) %]. [%- ELSE %] [%- tprintf(loc('Council ref: %s'), problem.external_id) %]. [%- END %] [%- ELSE -%] [%- IF c.cobrand.moniker == 'bathnes' OR c.cobrand.moniker == 'cheshireeast' OR c.cobrand.moniker == 'peterborough' %] [%- tprintf(loc('Council ref: %s'), problem.id) %]. [%- ELSIF c.cobrand.moniker == 'bexley' %] [%- tprintf('Report ref: %s', problem.id) %]. [%- ELSIF c.cobrand.moniker == 'tfl' %] [%- tprintf('TfL ref: FMS%s', problem.id) %]. [%- ELSIF c.cobrand.moniker == 'northamptonshire' %] [%- IF NOT c.cobrand.is_defect(problem) %] [% tprintf(loc('ref: %s'), problem.id) %]. [%- END -%] [%- ELSE %] [%- tprintf(loc('FixMyStreet ref: %s'), problem.id) %]. [%- END %] [%- END -%]