diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 13 | ||||
-rw-r--r-- | templates/web/bromley/report/display.html | 8 |
2 files changed, 14 insertions, 7 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 13a347a90..c20a6754a 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -211,6 +211,19 @@ sub generate_map_tags : Private { return 1; } +=head2 delete + +Endpoint for the council report hiding feature enabled for +C<users_can_hide> bodies, and Bromley. The latter is migrating +to moderation, however we'd need to inform all the other +users too about this change, at which point we can delete: + + - this method + - the call to it in templates/web/fixmystreet/report/display.html + - the users_can_hide cobrand method, in favour of user->has_permission_to + +=cut + sub delete :Local :Args(1) { my ( $self, $c, $id ) = @_; diff --git a/templates/web/bromley/report/display.html b/templates/web/bromley/report/display.html index 67802e82a..a4bd76fdc 100644 --- a/templates/web/bromley/report/display.html +++ b/templates/web/bromley/report/display.html @@ -20,13 +20,7 @@ <div class="shadow-wrap"> <ul id="key-tools"> - [% IF c.user_exists AND c.user.body == 'Bromley Council' %] - <li><form method="post" action="/report/delete/[% problem.id %]"> - <input type="submit" class="abuse" value="Remove from site"> - </form></li> - [% ELSE %] - <li><a rel="nofollow" id="key-tool-report-abuse" class="abuse" href="[% c.uri_for( '/contact', { id => problem.id } ) %]">[% loc('Report abuse') %]</a></li> - [% END %] + <li><a rel="nofollow" id="key-tool-report-abuse" class="abuse" href="[% c.uri_for( '/contact', { id => problem.id } ) %]">[% loc('Report abuse') %]</a></li> <li><a rel="nofollow" id="key-tool-report-updates" class="feed" href="[% c.uri_for( '/alert/subscribe', { id => problem.id } ) %]">[% loc('Get updates' ) %]</a></li> <li><a class="chevron" id="key-tool-problems-nearby" href="[% c.uri_for( '/around', { lat => short_latitude, lon => short_longitude } ) %]">[% loc( 'Problems nearby' ) %]</a></li> </ul> |