-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include FixMyStreet ID in report metadata.
Historically we relied upon the URL for someone getting the ID of a report, but this is harder on mobile. Factor together all the _council_sent_info.html templates.
- Loading branch information
Showing
10 changed files
with
42 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
[% 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 %] | ||
[% IF duration_clause || problem.can_display_external_id %] | ||
<p class="council_sent_info"> | ||
[%- IF problem.can_display_external_id %] | ||
[%- IF duration_clause %] | ||
[%- external_ref_clause = tprintf(loc('Council ref: %s'), problem.external_id) %] | ||
<p class="council_sent_info"> | ||
[% duration_clause %][% IF duration_clause %]. [% END %] | ||
<strong> | ||
[%- 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 %] | ||
[%- external_ref_clause = tprintf(loc('%s ref: %s'), problem.external_body, problem.external_id) %] | ||
[%- tprintf(loc('FixMyStreet ref: %s'), problem.id) %]. | ||
[%- END %] | ||
[%- END -%] | ||
[% duration_clause %] | ||
[%- IF external_ref_clause %] | ||
[%- IF duration_clause %]. [% END %] | ||
<strong>[% external_ref_clause %].</strong> | ||
[%- END %] | ||
</p> | ||
[% END %] | ||
</strong> | ||
</p> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
templates/web/northamptonshire/report/_council_sent_info.html
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.