Make yum download instructions more dyanamic

Using the crawled data, propulate dropdown boxes with versions and
platforms, to be able to show simpler instructions of exactly which
commands to use to install using the yum repository.
This commit is contained in:
Magnus Hagander
2017-06-08 13:05:35 +02:00
parent 309fc242f8
commit 8e8903bd48
4 changed files with 123 additions and 50 deletions

View File

@ -192,6 +192,13 @@ def mirrorselect(request, path):
return HttpResponseRedirect("https://ftp.postgresql.org/pub/%s" % path)
# Render javascript for yum downloads
def yum_js(request):
with open(settings.YUM_JSON) as f:
jsonstr = f.read()
return render_to_response('downloads/js/yum.js', {
'json': jsonstr,
}, content_type='application/json')
#######
# Product catalogue