summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-15 16:14:36 +0200
committerDan McGee <dan@archlinux.org>2012-09-15 16:14:36 +0200
commita2034fc80d4e73816502537f8dfe864ab4ef8db3 (patch)
treec8ae7ecffed0f959dffc28b65ff0595c21aa0431 /devel
parentdfbf7cdd4c273f2b1f3c1c79b97149d37e63e028 (diff)
downloadarchweb-a2034fc80d4e73816502537f8dfe864ab4ef8db3.tar.gz
archweb-a2034fc80d4e73816502537f8dfe864ab4ef8db3.tar.xz
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 5406974..23ff9f7 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,
}