From 6b15298483db6be873edc72c3e96fd5668a3cbc3 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Fri, 19 Aug 2011 19:38:17 +0200 Subject: 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 --- public/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'public') 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 = { -- cgit v1.2.3-24-g4f1b