add a Lab page, not linked to from anywhere yet
This commit is contained in:
@ -75,6 +75,10 @@ def downloads_firefox():
|
|||||||
def_mirror = DEFAULT_MIRROR
|
def_mirror = DEFAULT_MIRROR
|
||||||
return render_template('downloads/firefox.html', def_mirror=def_mirror)
|
return render_template('downloads/firefox.html', def_mirror=def_mirror)
|
||||||
|
|
||||||
|
# The Lab
|
||||||
|
def downloads_lab():
|
||||||
|
return render_template('downloads/lab.html')
|
||||||
|
|
||||||
# Specific file downloader
|
# Specific file downloader
|
||||||
def downloads_select(version, file):
|
def downloads_select(version, file):
|
||||||
mirrors=read_mirrors()
|
mirrors=read_mirrors()
|
||||||
|
@ -18,6 +18,7 @@ LEGACY_FUNCTIONS_MAP={
|
|||||||
'announcements': {'function': 'blog_index', 'params': {}},
|
'announcements': {'function': 'blog_index', 'params': {}},
|
||||||
'debian': {'function': 'downloads_debian', 'params': {}},
|
'debian': {'function': 'downloads_debian', 'params': {}},
|
||||||
'firefox': {'function': 'downloads_firefox', 'params': {}},
|
'firefox': {'function': 'downloads_firefox', 'params': {}},
|
||||||
|
'lab': {'function': 'downloads_lab', 'params': {}},
|
||||||
'download': {'function': 'downloads_list', 'params': {}},
|
'download': {'function': 'downloads_list', 'params': {}},
|
||||||
'installation': {'function': 'downloads_list', 'params': {}},
|
'installation': {'function': 'downloads_list', 'params': {}},
|
||||||
'meetings': {'function': 'meetings_index', 'params': {}},
|
'meetings': {'function': 'meetings_index', 'params': {}},
|
||||||
|
33
i2p2www/pages/downloads/lab.html
Normal file
33
i2p2www/pages/downloads/lab.html
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{% extends "global/layout.html" %}
|
||||||
|
{% block title %}I2P Lab{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>{{ _('I2P Laboratory') }}</h1>
|
||||||
|
{% trans forum='https://i2pforum.net'-%}
|
||||||
|
<p>Welcome to the I2P Laboratory! This is the home of various experimental projects that are not yet ready to go live. We invite you to look around and give them a try, but we do not offer support for them. Any of these projects may be discontinued at any time.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
We welcome your feedback at the <a href="{{ forum }}">I2P Forum</a>
|
||||||
|
<p>
|
||||||
|
{%- endtrans %}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<h3>{{ _('Current Projects') }}</h3>
|
||||||
|
|
||||||
|
<h5>{{ _('Zero-Dependency installer') }}</h5>
|
||||||
|
{% trans installer='https://download.i2p2.de/experimental/Zero-Installer-0.9.38.exe' %}
|
||||||
|
<p>
|
||||||
|
This is an I2P installer for Windows that does not depend on Java. It comes with everything it needs out of the box.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="{{ installer }}">Download the installer</a> and double-click on it.
|
||||||
|
</p>
|
||||||
|
{%- endtrans %}
|
||||||
|
<!--
|
||||||
|
{% trans signer='zlatinb',
|
||||||
|
signingkey=url_for('static', filename='zlatinb.key.crt') -%}
|
||||||
|
The files are signed by {{ signer }},
|
||||||
|
<a href="{{ signingkey }}">whose key is here</a>.
|
||||||
|
{%- endtrans %}
|
||||||
|
-->
|
||||||
|
{% endblock %}
|
@ -112,6 +112,9 @@ def render_sitemap():
|
|||||||
urls.append({
|
urls.append({
|
||||||
'path': '/download/firefox',
|
'path': '/download/firefox',
|
||||||
})
|
})
|
||||||
|
urls.append({
|
||||||
|
'path': '/download/lab',
|
||||||
|
})
|
||||||
|
|
||||||
# Render and return the sitemap
|
# Render and return the sitemap
|
||||||
response = make_response(render_template('global/sitemap.xml', url_root=url_root, langs=LANG_FRAGS,
|
response = make_response(render_template('global/sitemap.xml', url_root=url_root, langs=LANG_FRAGS,
|
||||||
|
@ -79,6 +79,7 @@ url('/<lang:lang>/feed/meetings/atom', 'meetings.views.meetings_atom')
|
|||||||
url('/<lang:lang>/download', 'downloads.downloads_list')
|
url('/<lang:lang>/download', 'downloads.downloads_list')
|
||||||
url('/<lang:lang>/download/debian', 'downloads.downloads_debian')
|
url('/<lang:lang>/download/debian', 'downloads.downloads_debian')
|
||||||
url('/<lang:lang>/download/firefox', 'downloads.downloads_firefox')
|
url('/<lang:lang>/download/firefox', 'downloads.downloads_firefox')
|
||||||
|
url('/<lang:lang>/download/lab', 'downloads.downloads_lab')
|
||||||
url('/<lang:lang>/download/<string:version>/<path:file>/mirrors', 'downloads.downloads_select')
|
url('/<lang:lang>/download/<string:version>/<path:file>/mirrors', 'downloads.downloads_select')
|
||||||
url('/<lang:lang>/download/<string:version>/<string:net>/any/<path:file>/download', 'downloads.downloads_redirect', defaults={'protocol': None, 'domain': None})
|
url('/<lang:lang>/download/<string:version>/<string:net>/any/<path:file>/download', 'downloads.downloads_redirect', defaults={'protocol': None, 'domain': None})
|
||||||
url('/<lang:lang>/download/<string:version>/<string:net>/<string:protocol>/any/<path:file>/download', 'downloads.downloads_redirect', defaults={'domain': None})
|
url('/<lang:lang>/download/<string:version>/<string:net>/<string:protocol>/any/<path:file>/download', 'downloads.downloads_redirect', defaults={'domain': None})
|
||||||
|
Reference in New Issue
Block a user