From bb93f05f56f2b22a662f85736549a72735864b20 Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Mon, 13 Apr 2009 22:11:10 -0400 Subject: FS#11325. Add a 'Target Repo' column to the signoffs page. --- packages/views.py | 11 ++++++++++- templates/packages/signoffs.html | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/views.py b/packages/views.py index e986409c..49ab9a0a 100644 --- a/packages/views.py +++ b/packages/views.py @@ -151,8 +151,17 @@ def unflag(request, pkgid): def signoffs(request): packages = Package.objects.filter(repo__name="Testing").order_by("pkgname") + package_list = [] + other_packages = Package.objects.exclude(repo__name="Testing") + for package in packages: + other_package = other_packages.filter(pkgname=package.pkgname) + if len(other_package): + repo = other_package[0].repo.name + else: + repo = "Unknown" + package_list.append((package, repo)) return render_to_response('packages/signoffs.html', - RequestContext(request, {'packages': packages})) + RequestContext(request, {'packages': package_list})) def signoff_package(request, arch, pkgname): pkg = get_object_or_404(Package, diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html index e422adb3..cb6a848e 100644 --- a/templates/packages/signoffs.html +++ b/templates/packages/signoffs.html @@ -10,15 +10,17 @@ Package Version Last Updated + Target Repo Approved Signoff - {% for pkg in packages %} + {% for pkg,target in packages %} {{ pkg.arch.name }} {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }} {{ pkg.last_update }} + {{ target }} {{ pkg.approved_for_signoff|yesno:"Yes,No" }}