diff options
Diffstat (limited to 'templates')
3 files changed, 34 insertions, 8 deletions
diff --git a/templates/web/fixmystreet-uk-councils/report/_updates_disallowed_message.html b/templates/web/fixmystreet-uk-councils/report/_updates_disallowed_message.html new file mode 100644 index 000000000..3a2dda03e --- /dev/null +++ b/templates/web/fixmystreet-uk-councils/report/_updates_disallowed_message.html @@ -0,0 +1,17 @@ +[% cfg = c.cobrand.feature("updates_allowed") ~%] +[% IF cfg.match('reporter') AND (NOT cfg.match('open') OR problem.is_open) %] + <p> + Only the original reporter may leave updates. + [% IF NOT c.user_exists %] + If you made the original report please + <a href="/auth?r=report/[% problem.id %]">log in</a> + to leave an update. + [% END %] + </p> +[% ELSE %] + <p>[% loc('This report is now closed to updates.') %] + [% tprintf(loc('You can <a href="%s">make a new report in the same location</a>.'), + c.uri_for( '/report/new', { longitude = longitude, latitude = latitude } ) + ) %] + </p> +[% END %] diff --git a/templates/web/fixmystreet.com/report/_updates_disallowed_message.html b/templates/web/fixmystreet.com/report/_updates_disallowed_message.html new file mode 100644 index 000000000..d2d9cf83b --- /dev/null +++ b/templates/web/fixmystreet.com/report/_updates_disallowed_message.html @@ -0,0 +1,17 @@ +[% cfg = c.cobrand.updates_disallowed_config(problem).0 ~%] +[% IF cfg.match('reporter') AND (NOT cfg.match('open') OR problem.is_open) %] + <p> + Only the original reporter may leave updates. + [% IF NOT c.user_exists %] + If you made the original report please + <a href="/auth?r=report/[% problem.id %]">log in</a> + to leave an update. + [% END %] + </p> +[% ELSE %] + <p>[% loc('This report is now closed to updates.') %] + [% tprintf(loc('You can <a href="%s">make a new report in the same location</a>.'), + c.uri_for( '/report/new', { longitude = longitude, latitude = latitude } ) + ) %] + </p> +[% END %] diff --git a/templates/web/isleofwight/report/_updates_disallowed_message.html b/templates/web/isleofwight/report/_updates_disallowed_message.html deleted file mode 100644 index af56f73b1..000000000 --- a/templates/web/isleofwight/report/_updates_disallowed_message.html +++ /dev/null @@ -1,8 +0,0 @@ -<p> - Only the original reporter may leave updates. - [% IF NOT c.user_exists %] - If you made the original report please - <a href="/auth?r=report/[% problem.id %]">log in</a> - to leave an update. - [% END %] -</p> |