commit d4a494a71076695269af08fe224f31b06fac0ef1
Author: Matthew Finkel <sysrqb(a)torproject.org>
Date: Wed Mar 3 22:53:03 2021 +0000
Support distinct Linux Tor Browser version
---
templates/download-languages.html | 3 ++-
templates/hero-download.html | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/templates/download-languages.html b/templates/download-languages.html
index f80fae66..b4bb963b 100644
--- a/templates/download-languages.html
+++ b/templates/download-languages.html
@@ -17,6 +17,7 @@
<tbody>
{% set t = bag('versions', 'torbrowser-stable') %}
{% set t_win = bag('versions', 'torbrowser-win-stable') %}
+ {% set t_linux = bag('versions', 'torbrowser-linux-stable') %}
{% for id, item in bag('download-alternatives').items() %}
<tr>
<td>{{ item.language }}</td>
@@ -30,7 +31,7 @@
</td>
<td>
{% from "macros/downloads.html" import render_linux %}
- {{ render_linux(t.version, id) }}
+ {{ render_linux(t_linux.version, id) }}
</td>
</tr>
{% endfor %}
diff --git a/templates/hero-download.html b/templates/hero-download.html
index c6b0833b..6af9247a 100644
--- a/templates/hero-download.html
+++ b/templates/hero-download.html
@@ -25,6 +25,7 @@
{% set download_link = download_prefix + 'TorBrowser-' + t.version + '-osx64' + '_' + alt_l + '.dmg' %}
{% set sig_link = download_link + '.asc' %}
{% else %}
+ {% set t = bag('versions', 'torbrowser-linux-stable') %}
{% set download_link = download_prefix + 'tor-browser-linux64-' + t.version + '_' + alt_l + '.tar.xz' %}
{% set sig_link = download_link + '.asc' %}
{% endif %}