aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-05 16:55:26 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-05 16:55:26 +0000
commitf496a9f843738879e84bea6aae72eab4165a3dca (patch)
tree89d20e84713a4af1075b11723052bbd2ba852329 /templates
parent1a676c6a7b4eb01e022459e267270a020b70aa94 (diff)
Do problem search lookup in database, not in template.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/zurich/admin/problem_row.html4
-rw-r--r--templates/web/zurich/admin/reports.html2
2 files changed, 1 insertions, 5 deletions
diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html
index ce986cb20..f84d22711 100644
--- a/templates/web/zurich/admin/problem_row.html
+++ b/templates/web/zurich/admin/problem_row.html
@@ -1,9 +1,5 @@
[%- FOR problem IN problems %]
[% SET p_body = problem.bodies.values.0 %]
- [% IF page == 'search' %]
- [% 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[%
SET classes = [];
classes.push('adminhidden') IF problem.state == 'hidden';
diff --git a/templates/web/zurich/admin/reports.html b/templates/web/zurich/admin/reports.html
index 97d0aff7b..5122f7b5a 100644
--- a/templates/web/zurich/admin/reports.html
+++ b/templates/web/zurich/admin/reports.html
@@ -17,7 +17,7 @@
<th>[% loc('Status') %]</th>
<th>*</th>
</tr>
- [% INCLUDE 'admin/problem_row.html', page = 'search' %]
+ [% INCLUDE 'admin/problem_row.html' %]
</table>
[% INCLUDE 'pagination.html', admin = 1, param = 'p' IF pager %]