add a page for the NSIS JPackage+Profile+I2P installer

This commit is contained in:
idk
2021-09-15 15:02:54 -04:00
parent f99040713d
commit 0839c69b73
3 changed files with 29 additions and 12 deletions

View File

@ -89,6 +89,15 @@ def downloads_debian():
def downloads_windows():
return render_template('downloads/windows.html')
# AIO-Windows-specific page
def downloads_nsis():
# TODO: read mirror list or list of available files
if request.headers.get('X-I2P-Desthash') and not request.headers.get('X-Forwarded-Server'):
def_mirror = DEFAULT_I2P_MIRROR
else:
def_mirror = DEFAULT_MIRROR
return render_template('downloads/nsis.html', def_mirror=def_mirror)
# Docker-specific page
def downloads_docker():
return render_template('downloads/docker.html')