summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-25 07:45:36 +0200
committerDan McGee <dan@archlinux.org>2012-07-25 07:45:36 +0200
commitc1a6a87e23864ea044cb15f76b9dbb16734f08d8 (patch)
treea3f0a2ac4622ee4eab7009c93af8baa4d0d9cf0f /todolists
parent24b28a504cabcf077882aa95cfa0edbc6a8d4569 (diff)
downloadarchweb-c1a6a87e23864ea044cb15f76b9dbb16734f08d8.tar.gz
archweb-c1a6a87e23864ea044cb15f76b9dbb16734f08d8.tar.xz
Add arch and repo filter to todolist packages
This matches what we do on signoffs. Also beef up the styling a bit and add the dynamically updated package count info. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r--todolists/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/todolists/views.py b/todolists/views.py
index c7ba256..b8d1dae 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -53,9 +53,13 @@ def view(request, list_id):
# we don't hold onto the result, but the objects are the same here,
# so accessing maintainers in the template is now cheap
attach_maintainers(tp.pkg for tp in todolist.packages)
+ arches = set(tp.pkg.arch for tp in todolist.packages)
+ repos = set(tp.pkg.repo for tp in todolist.packages)
return render(request, 'todolists/view.html', {
'list': todolist,
'svn_roots': svn_roots,
+ 'arches': sorted(arches),
+ 'repos': sorted(repos),
})
# really no need for login_required on this one...