diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-11 14:03:20 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-11 14:03:20 +0000 |
commit | d8cd1f09f4e6c3eade7226b9b5bfe11571923c21 (patch) | |
tree | 8b0b7de40eb7f57d1a8b31d66405cbd97e1b5fe6 | |
parent | dad868138289b628ac579bdfe8380a8fe3d858e1 (diff) |
Only show relevant reports in lists.
-rw-r--r-- | templates/web/zurich/admin/problem_row.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html index fc667c0d7..6f8f73738 100644 --- a/templates/web/zurich/admin/problem_row.html +++ b/templates/web/zurich/admin/problem_row.html @@ -10,6 +10,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 %] <tr[% ' class="adminhidden"' IF problem.state == 'hidden' %]> <td>[%- IF problem.is_visible -%] <a href="[% c.uri_for_email( '/report', problem.id ) %]">[% problem.id %]</a> |