Commit 48d4c4ca authored by Hiro's avatar Hiro 🏄
Browse files

Fix source download page

Revert "Fix footer"

This reverts commit 650dd7b1.
parent d5a603d3
......@@ -15,9 +15,3 @@ version = 0.3.5.8
[tor-alpha]
version = 0.4.0.3-alpha
[tor-win32-stable]
version = 0.2.4.22
[tor-win32-alpha]
version = 0.2.4.23
......@@ -11,17 +11,13 @@
<div class="row">
<h4 class="mx-auto display-4 text-center text-white">{{ _('Get Tor Browser for Android.') }}</h4>
</div>
</div>
<div class="d-none d-lg-block col-lg-4">
<img class="img-fluid p-5" height="auto" src="{{ 'static/images/tor-browser-mobile-window/png/TBAa-onboarding@2x.png'|asseturl }}">
</div>
</div>
<div class="row col-lg-10 mx-auto">
<div class="col-lg-12 py-5 mt-5">
<div class="row">
<h3 class="mx-auto defend text-white">{{ _('Protect yourself against tracking, surveillance, and censorship.') }}</h3>
</div>
</div>
<div class="d-none d-lg-block col-lg-4">
<img class="img-fluid p-5" height="auto" src="{{ 'static/images/tor-browser-mobile-window/png/TBAa-onboarding@2x.png'|asseturl }}">
</div>
</div>
<div class="row col-lg-10 mx-auto">
<div class="col-lg-12 py-5 mt-5">
......
......@@ -33,6 +33,7 @@
</td>
</tr>
{% endfor %}
{% set t = bag('versions', 'torbrowser-stable') %}
</tbody>
</table>
</div>
......
......@@ -8,34 +8,25 @@
<table class="table">
<thead>
<tr>
<th scope="col">OS</th>
<th scope="col">Stable</th>
<th scope="col">Unstable</th>
<th scope="col">Version</th>
<th></th>
</tr>
</thead>
<tbody>
{% set t = bag('versions', 'tor-stable') %}
{% set a = bag('versions', 'tor-alpha') %}
{% set tw = bag('versions', 'tor-win32-stable') %}
{% set aw = bag('versions', 'tor-win32-alpha') %}
{% for id, item in bag('platforms').items() %}
{% if id == 'windows' %}
{% set download_link = 'https://dist.torproject.org/win32/tor-' + tw.version + '-win32.exe' %}
{% set sig_link = download_link + '.asc' %}
{% set alpha_download_link = 'https://dist.torproject.org/win32/tor-' + aw.version + '-win32.exe' %}
{% set alpha_sig_link = alpha_download_link + '.asc' %}
{% else %}
{% set download_link = 'https://dist.torproject.org/tor-' + t.version + '.tar.gz' %}
{% set sig_link = download_link + '.asc' %}
{% set alpha_download_link = 'https://dist.torproject.org/tor-' + a.version + '.tar.gz' %}
{% set alpha_sig_link = alpha_download_link + '.asc' %}
{% endif %}
<tr>
<td>{{ item.label }}</td>
<td><a href="{{ download_link }}">stable</a> (<a href="{{ sig_link }}">sig</a>)</td>
<td><a href="{{ alpha_download_link }}">alpha</a> (<a href="{{ alpha_sig_link }}">sig</a>)</td>
</tr>
{% endfor %}
{% set download_link = 'https://dist.torproject.org/tor-' + t.version + '.tar.gz' %}
{% set sig_link = download_link + '.asc' %}
{% set alpha_download_link = 'https://dist.torproject.org/tor-' + a.version + '.tar.gz' %}
{% set alpha_sig_link = alpha_download_link + '.asc' %}
<tr>
<td>{{ t.version }}</td>
<td class="text-right"><a href="{{ download_link }}">Download</a> (<a href="{{ sig_link }}">sig</a>)</td>
</tr>
<tr>
<td>{{ a.version }}</td>
<td class="text-right"><a href="{{ alpha_download_link }}">Download</a> (<a href="{{ alpha_sig_link }}">sig</a>)</td>
</tr>
</tbody>
</table>
</div>
......
......@@ -13,6 +13,14 @@
<a class="downloadLink" href="{{ download_link_32 }}">32-bit</a> (<a href="{{ sig_link_32 }}">sig</a>) / <a href="{{ download_link_64 }}">64-bit</a> (<a href="{{ sig_link_64 }}">sig<a/>)
{% endmacro %}
{% macro render_windows_expert(version, win32) %}
{% set download_prefix = 'https://www.torproject.org/dist/torbrowser/' + version + '/' %}
{% set download_link_32 = download_prefix + 'tor-win32-' + win32 + '.zip' %}
{% set sig_link_32 = download_link_32 + '.asc' %}
<a class="downloadLink" href="{{ download_link_32 }}">Download</a> (<a href="{{ sig_link_32 }}">sig</a>)
{% endmacro %}
{% macro render_mac(version, alt) %}
{% set download_prefix = 'https://www.torproject.org/dist/torbrowser/' + version + '/' %}
{% if alt == 'en' %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment