summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-15 09:14:36 -0500
committerDan McGee <dan@archlinux.org>2012-09-15 09:14:36 -0500
commita2034fc80d4e73816502537f8dfe864ab4ef8db3 (patch)
treec8ae7ecffed0f959dffc28b65ff0595c21aa0431 /devel
parentdfbf7cdd4c273f2b1f3c1c79b97149d37e63e028 (diff)
Add JS-based filtering to the developer reports
This can use the todolist filtering functions we made more generic in a previous commit. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/views.py b/devel/views.py
index 5406974e..23ff9f74 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -271,11 +271,15 @@ def report(request, report_name, username=None):
else:
raise Http404
+ arches = set(pkg.arch for pkg in packages)
+ repos = set(pkg.repo for pkg in packages)
context = {
'all_maintainers': maints,
'title': title,
'maintainer': user,
'packages': packages,
+ 'arches': sorted(arches),
+ 'repos': sorted(repos),
'column_names': names,
'column_attrs': attrs,
}