From b579f98acf85e8d749a471a98f7940b859cb366f Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Sun, 29 Jun 2008 20:08:18 -0400 Subject: add maintainer column to search results --- packages/views.py | 3 +++ templates/packages/search.html | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/packages/views.py b/packages/views.py index 2a77be53..e9162c0f 100644 --- a/packages/views.py +++ b/packages/views.py @@ -47,6 +47,7 @@ def details(request, pkgid=0, name='', repo=''): pkg = get_object_or_404(Package, id=pkgid) return render_response(request, 'packages/details.html', {'pkg': pkg}) +# @TODO: replace search form with a newform def search(request, query=''): if request.GET.has_key('q'): # take the q GET var over the one passed on the URL @@ -65,9 +66,11 @@ def search(request, query=''): # build the form lists repos = Repo.objects.all() arches = Arch.objects.all() + users = User.objects.all() # copy GET data over and add the lists c = request.GET.copy() c['repos'], c['arches'] = repos, arches + c['users'] = users c['limit'], c['skip'] = limit, skip c['lastupdate'] = lastupdate c['sort'] = sort diff --git a/templates/packages/search.html b/templates/packages/search.html index a64b92a2..9629a2c3 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -20,6 +20,7 @@ Arch Repository Keywords + Maintainer Last Update Per Page @@ -39,6 +40,14 @@ + +