diff options
author | Thomas Bächler <thomas@archlinux.org> | 2011-08-19 19:38:17 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-19 19:55:50 +0200 |
commit | 6b15298483db6be873edc72c3e96fd5668a3cbc3 (patch) | |
tree | 796b375f222dee2506ce2b236bd2bf0655de768d | |
parent | 33f3e9fe501d2d0b474f69359e7099dc7fb04f7a (diff) | |
download | archweb-6b15298483db6be873edc72c3e96fd5668a3cbc3.tar.gz archweb-6b15298483db6be873edc72c3e96fd5668a3cbc3.tar.xz |
download: add link to the ISO snapshots
Dan: use relative links if possible, use releng link from settings, fix
HTML closing tags.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | public/views.py | 7 | ||||
-rw-r--r-- | templates/public/download.html | 10 |
2 files changed, 16 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py index e3f3b02..821e4d5 100644 --- a/public/views.py +++ b/public/views.py @@ -3,6 +3,7 @@ from mirrors.models import MirrorUrl from news.models import News from . import utils +from django.conf import settings from django.contrib.auth.models import User from django.db.models import Q from django.http import Http404 @@ -59,10 +60,14 @@ def download(request): protocol__is_download=True, mirror__public=True, mirror__active=True, mirror__isos=True ) + context = { + 'releng_iso_url': settings.ISO_LIST_URL, + } return list_detail.object_list(request, qset.order_by('mirror__country', 'mirror__name', 'protocol'), template_name="public/download.html", - template_object_name="mirror_url") + template_object_name="mirror_url", + extra_context=context) def feeds(request): context = { diff --git a/templates/public/download.html b/templates/public/download.html index ea1a5db..36aca9a 100644 --- a/templates/public/download.html +++ b/templates/public/download.html @@ -115,6 +115,16 @@ title="Purchase a CD from LinuxCD">Purchase a CD from LinuxCD</a></li> </ul> + <h3>Test ISO Info</h3> + + <p>We provide daily snapshot ISOs. Those are largely untested, + but may be more up to date than the releases.</p> + <ul> + <li><a href="{{ releng_iso_url }}" + title="Release Engineering ISO download">Download snapshots</a></li> + <li><a href="{% url releng-test-overview %}" + title="Release Engineering ISO feedback">Feedback</a></li> + </ul> <h3>HTTP/FTP Direct Downloads</h3> |