mac dmg page

This commit is contained in:
Zlatin Balevsky
2021-08-26 14:41:36 +01:00
parent 14e972b7dc
commit 48531c915a
6 changed files with 86 additions and 1 deletions

View File

@@ -104,7 +104,21 @@ def downloads_firefox():
# The Lab
def downloads_lab():
return render_template('downloads/lab.html')
# 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/lab.html', def_mirror=def_mirror)
# Mac DMG page
def downloads_mac():
# 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/mac.html', def_mirror=def_mirror)
def downloads_config():
return render_template('downloads/config.html')