diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-09-06 10:36:14 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-09-09 08:06:52 +0100 |
commit | 15efdd9df65dff2340f364e17014e1afa1b449d6 (patch) | |
tree | 3b81d07bad915491eb503df3eafc77804576f287 | |
parent | 7cc39bf875630ae5a2ad9b7245eac286cfaab59f (diff) |
Show 'Remove from site' button based on report.
If the user is a member of the body the report was sent to (and the
cobrand has the option enabled), show the remove from site button.
This was previously cobrand-based (it was shown if the user was a
member of the body the cobrand has hardcoded as its council_id),
which was confusing and harder to implement. Fixes #1508.
-rw-r--r-- | templates/web/base/report/display_tools.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/report/display_tools.html b/templates/web/base/report/display_tools.html index 590f81593..1f23d4d6a 100644 --- a/templates/web/base/report/display_tools.html +++ b/templates/web/base/report/display_tools.html @@ -1,6 +1,6 @@ <div class="shadow-wrap"> <ul id="key-tools"> - [% IF c.user_exists AND c.cobrand.users_can_hide AND c.user.belongs_to_body( c.cobrand.council_id ) %] + [% IF c.user_exists AND c.cobrand.users_can_hide AND c.user.belongs_to_body( problem.bodies_str ) %] <li><form method="post" action="/report/delete/[% problem.id %]" id="remove-from-site-form"> <input type="hidden" name="token" value="[% csrf_token %]"> <input type="submit" id="key-tool-report-abuse" class="abuse" value="Remove from site"> |