diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/_inspect.html | 2 | ||||
-rw-r--r-- | templates/web/base/report/_main.html | 12 | ||||
-rw-r--r-- | templates/web/base/report/inspect.html | 3 |
3 files changed, 2 insertions, 15 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html index 34a7ea96c..b85fec0bb 100644 --- a/templates/web/base/report/_inspect.html +++ b/templates/web/base/report/_inspect.html @@ -4,7 +4,7 @@ <div id="side-inspect"> [% INCLUDE 'errors.html' %] - <form id="report_inspect_form" method="post" action="[% c.uri_for( '/report', problem.id, 'inspect' ) %]"> + <form id="report_inspect_form" method="post" action="[% c.uri_for( '/report', problem.id ) %]"> <div class="inspect-section"> <p> diff --git a/templates/web/base/report/_main.html b/templates/web/base/report/_main.html index 0a4056da7..4de26535c 100644 --- a/templates/web/base/report/_main.html +++ b/templates/web/base/report/_main.html @@ -119,24 +119,12 @@ [% IF (permissions.moderate) OR - (!hide_inspect_button AND - permissions.keys.grep('report_inspect|report_edit_category|report_edit_priority').size) - OR (c.user.has_permission_to('planned_reports', problem.bodies_str_ids)) %] <div class="moderate-display segmented-control" role="menu"> [% IF permissions.moderate %] <a class="js-moderate btn" role="menuitem" aria-label="[% loc('Moderate this report') %]">[% loc('Moderate') %]</a> [% END %] - [% IF !hide_inspect_button AND permissions.keys.grep('report_inspect|report_edit_category|report_edit_priority').size %] - <a class="btn" href="/report/[% problem.id %]/inspect#side-inspect" role="menuitem"> - [%~ IF permissions.report_inspect ~%] - [%~ loc('Inspect') ~%] - [%~ ELSE ~%] - [%~ loc('Manage') ~%] - [%~ END ~%] - </a> - [% END %] [% IF c.user.has_permission_to('planned_reports', problem.bodies_str_ids) %] [%~ IF c.user.is_planned_report(problem) ~%] <label class="btn" for="shortlist-report" role="menuitem" aria-label="[% loc('Remove from shortlist') %]">[% loc('Shortlisted') %]</label> diff --git a/templates/web/base/report/inspect.html b/templates/web/base/report/inspect.html index f4a9e4c46..7f02374e2 100644 --- a/templates/web/base/report/inspect.html +++ b/templates/web/base/report/inspect.html @@ -2,6 +2,5 @@ SET bodyclass = 'mappage with-actions'; SET two_column_sidebar = 1; PROCESS 'report/_inspect.html'; - SET shown_form = 1 UNLESS problem.get_extra_metadata('inspected'); - INCLUDE 'report/display.html', hide_inspect_button = 1; + INCLUDE 'report/display.html' %] |