diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-02-17 15:09:44 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-17 15:09:44 +0000 |
commit | af949b141ac8d48cac53b72070e63596f5cb5b3a (patch) | |
tree | 220b6df8c20e00812dc23ba69679a3017b5aa9a3 /templates | |
parent | 72727177baeb62be7973595aa98819cc7739a7b3 (diff) | |
parent | acf3214f964a62f04ba40380a32ddb85c53d1a5c (diff) |
Merge branch 'tfl-show-tlrn-to-staff'
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/tfl/footer_extra_js.html | 7 | ||||
-rw-r--r-- | templates/web/tfl/report/_item_heading.html | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/web/tfl/footer_extra_js.html b/templates/web/tfl/footer_extra_js.html index a8ccc80d0..af38a5286 100644 --- a/templates/web/tfl/footer_extra_js.html +++ b/templates/web/tfl/footer_extra_js.html @@ -9,3 +9,10 @@ IF bodyclass.match('mappage'); ); END %] +[%~ +IF c.user_exists AND ((c.user.from_body AND c.user.from_body.name == 'TfL') OR c.user.is_superuser); + scripts.push( + version('/cobrands/tfl/staff.js'), + ); +END +%] diff --git a/templates/web/tfl/report/_item_heading.html b/templates/web/tfl/report/_item_heading.html index c9575f0fd..17ded1110 100644 --- a/templates/web/tfl/report/_item_heading.html +++ b/templates/web/tfl/report/_item_heading.html @@ -1,4 +1,7 @@ <h3 class="item-list__heading">[% problem.title | html %]</h3> +[% IF c.user.from_body || c.user.is_superuser %] + <small class="item-list__item__borough">[% c.cobrand.borough_for_report(problem) %]</small> +[% END %] [%~ IF c.user.has_permission_to('report_inspect', problem.bodies_str_ids) AND problem.get_extra_field_value('safety_critical') == 'yes' ~%] <small class="item-list__safety-critical">Safety Critical</small> [%~ END ~%] |