summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-08-06 17:54:11 -0400
committerDusty Phillips <buchuki@gmail.com>2008-08-06 17:54:11 -0400
commit1cab1fe84194663d5c9d92e0755a3a0a03e13a27 (patch)
tree41ae4097a85e5ee118ba7bb965d1d999b83571bc
parentd2abb3637f3011dcc70231bbc552a0e09148506f (diff)
boilerplate for new signoffs code
-rw-r--r--packages/views.py6
-rw-r--r--templates/packages/signoffs.html32
-rw-r--r--urls.py1
3 files changed, 39 insertions, 0 deletions
diff --git a/packages/views.py b/packages/views.py
index 6cadef50..5b2da419 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -145,5 +145,11 @@ def unflag(request, pkgid):
pkg.save()
return HttpResponseRedirect('/packages/%d/' % (pkg.id))
+def signoffs(request):
+ packages = Package.objects.filter(repo__name="Testing")
+ return render_response(request, 'packages/signoffs.html',
+ {'packages': packages})
+
+
# vim: set ts=4 sw=4 et:
diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html
new file mode 100644
index 00000000..16faa050
--- /dev/null
+++ b/templates/packages/signoffs.html
@@ -0,0 +1,32 @@
+{% load validation %}
+{% load package_extras %}
+{% extends "base.html" %}
+{% block title %}Arch Linux - Package Search{% endblock %}
+{% block head %}
+<script type="text/JavaScript" src="/media/calendar.js"></script>
+<link href="/media/calendar.css" rel="stylesheet" type="text/css" />
+{% endblock %}
+
+{% block content %}
+ {% if packages %}
+ <div class="greybox">
+ <table class="results" width="100%">
+ <tr>
+ <th>Arch</th>
+ <th>Package</th>
+ <th>Maintainer</th>
+ <th>Version</th>
+ </tr>
+ {% for pkg in packages %}
+ <tr class="{% cycle pkgr2,pkgr1 %}">
+ <td>{{ pkg.arch.name }}</td>
+ <td><a href="{{ pkg.get_absolute_url }}">{{ pkg.pkgname }}</a></td>
+ <td>{{ pkg.maintainer|default:"Orphan" }}</td>
+ <td>{{ pkg.pkgver }}-{{ pkg.pkgrel }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+ {% endif %}
+{% endblock %}
+
diff --git a/urls.py b/urls.py
index 5ba6ff74..3c2fa9fd 100644
--- a/urls.py
+++ b/urls.py
@@ -9,6 +9,7 @@ urlpatterns = patterns('',
# Dynamic Stuff
(r'^packages/unflag/(\d+)/$', 'archweb_dev.packages.views.unflag'),
(r'^packages/files/(\d+)/$', 'archweb_dev.packages.views.files'),
+ (r'^packages/signoffs/$', 'archweb_dev.packages.views.signoffs'),
(r'^packages/search/$', 'archweb_dev.packages.views.search'),
(r'^packages/search/([A-z0-9]+)/$', 'archweb_dev.packages.views.search'),
(r'^packages/update/$', 'archweb_dev.packages.views.update'),