commit 3050853eb568e5abf815bbcf0fde7563bb270957 Author: hiro hiro@torproject.org Date: Tue Apr 16 18:19:27 2019 +0200
Add source download page --- databags/versions.ini | 6 ++++++ templates/download-tor.html | 22 ++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/databags/versions.ini b/databags/versions.ini index 5fdd461..ab83ca9 100644 --- a/databags/versions.ini +++ b/databags/versions.ini @@ -15,3 +15,9 @@ 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 diff --git a/templates/download-tor.html b/templates/download-tor.html index 686f452..fda525b 100644 --- a/templates/download-tor.html +++ b/templates/download-tor.html @@ -14,10 +14,28 @@ </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></td> - <td></td> + <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 %} </tbody> </table> </div>