diff options
-rw-r--r-- | templates/web/zurich/admin/index-sdm.html | 2 | ||||
-rw-r--r-- | templates/web/zurich/admin/problem_row.html | 8 | ||||
-rw-r--r-- | templates/web/zurich/admin/report_edit-sdm.html | 2 | ||||
-rw-r--r-- | templates/web/zurich/admin/reports.html | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/templates/web/zurich/admin/index-sdm.html b/templates/web/zurich/admin/index-sdm.html index 0bec32cf9..f05cbe0a0 100644 --- a/templates/web/zurich/admin/index-sdm.html +++ b/templates/web/zurich/admin/index-sdm.html @@ -1,4 +1,4 @@ -[% INCLUDE 'admin/header.html' title=loc('Summary') -%] +[% PROCESS 'admin/header.html' title=loc('Summary') -%] [% PROCESS 'admin/report_blocks.html' %] <h2>New reports</h2> diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html index 496bb6c14..c31ada598 100644 --- a/templates/web/zurich/admin/problem_row.html +++ b/templates/web/zurich/admin/problem_row.html @@ -1,7 +1,9 @@ [%- FOR problem IN problems %] - [% SET p_body = problem.bodies.values.0 %] - [% NEXT IF admin_type == 'sdm' AND p_body.id != body.id %] - [% NEXT IF admin_type == 'dm' AND p_body.id != body.id AND p_body.parent.id != body.id %] + [% IF page == 'search' %] + [% SET p_body = problem.bodies.values.0 %] + [% NEXT IF admin_type == 'sdm' AND p_body.id != body.id %] + [% NEXT IF admin_type == 'dm' AND p_body.id != body.id AND p_body.parent.id != body.id %] + [% END %] <tr[% ' class="adminhidden"' IF problem.state == 'hidden' %]> <td class="record-id">[%- IF problem.is_visible -%] <a href="[% c.uri_for_email( '/report', problem.id ) %]">[% problem.id %]</a> diff --git a/templates/web/zurich/admin/report_edit-sdm.html b/templates/web/zurich/admin/report_edit-sdm.html index 4efecb52c..e5add67f6 100644 --- a/templates/web/zurich/admin/report_edit-sdm.html +++ b/templates/web/zurich/admin/report_edit-sdm.html @@ -1,4 +1,4 @@ -[% INCLUDE 'admin/header.html' title=tprintf(loc('Editing problem %d'), problem.id ) -%] +[% PROCESS 'admin/header.html' title=tprintf(loc('Editing problem %d'), problem.id ) -%] [% PROCESS 'admin/report_blocks.html' %] [% status_message %] diff --git a/templates/web/zurich/admin/reports.html b/templates/web/zurich/admin/reports.html index 372e94367..518ca80bc 100644 --- a/templates/web/zurich/admin/reports.html +++ b/templates/web/zurich/admin/reports.html @@ -15,7 +15,7 @@ <th>[% loc('Created') %]</th> <th>*</th> </tr> - [% INCLUDE 'admin/problem_row.html' %] + [% INCLUDE 'admin/problem_row.html', page = 'search' %] </table> [% INCLUDE 'admin/list_updates.html' %] |