summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-09-15 20:13:11 -0500
committerDan McGee <dan@archlinux.org>2009-09-15 20:14:06 -0500
commit9dc89e8287d9f34da140d0494005388b7abc14c2 (patch)
tree63096ac2ac13802545a84f426e9341dd2cb7fc98 /devel/views.py
parente3ea5232732f442f75a372714b64e1c119c1be7c (diff)
Add a basic mirror view for the dev site
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/views.py b/devel/views.py
index f9aacec2..402ed26c 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -7,6 +7,7 @@ from django.core.mail import send_mail
from archweb_dev.main.models import Package, Todolist
from archweb_dev.main.models import Arch, Repo
from archweb_dev.main.models import UserProfile, News
+from archweb_dev.main.models import Mirror
import random
from string import ascii_letters, digits
pwletters = ascii_letters + digits
@@ -73,6 +74,11 @@ def siteindex(request):
RequestContext(request,
{'news_updates': news, 'pkg_updates': pkgs, 'repos': repos}))
+def mirrorlist(request):
+ mirrors = Mirror.objects.all()
+ return render_to_response('devel/mirrorlist.html',
+ RequestContext(request, {'mirror_list': mirrors}))
+
class NewUserForm(forms.ModelForm):
class Meta:
model = UserProfile