downloads.html 3.31 KB
Newer Older
1
{% macro render_windows(version, alt) %}
Matthew Finkel's avatar
Matthew Finkel committed
2
  {% set download_prefix = 'https://archive.torproject.org/tor-package-archive/torbrowser/' + version + '/' %}
3
4
  {% if alt == 'en' %}
    {% set alt = 'en-US' %}
Hiro's avatar
Hiro committed
5
6
  {% elif alt == 'es' %}
    {% set alt = 'es-ES' %}
7
8
9
10
11
12
  {% endif %}
  {% set download_link_64 = download_prefix + 'torbrowser-install-win64-' + version + '_' + alt + '.exe' %}
  {% set download_link_32 = download_prefix + 'torbrowser-install-' + version + '_' + alt + '.exe' %}
  {% set sig_link_64 = download_link_64 + '.asc' %}
  {% set sig_link_32 = download_link_32 + '.asc' %}

Hiro's avatar
Hiro committed
13
  <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/>)
14
15
{% endmacro %}

Hiro's avatar
Hiro committed
16
{% macro render_windows_expert(version, win32) %}
Hiro's avatar
Hiro committed
17
  {% set download_prefix = '/dist/torbrowser/' + version + '/' %}
Hiro's avatar
Hiro committed
18
19
20
21
22
23
  {% 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 %}

24
{% macro render_mac(version, alt) %}
Matthew Finkel's avatar
Matthew Finkel committed
25
  {% set download_prefix = 'https://archive.torproject.org/tor-package-archive/torbrowser/' + version + '/' %}
26
27
  {% if alt == 'en' %}
    {% set alt = 'en-US' %}
Hiro's avatar
Hiro committed
28
29
  {% elif alt == 'es' %}
    {% set alt = 'es-ES' %}
30
31
32
33
  {% endif %}
  {% set download_link = download_prefix + 'TorBrowser-' + version + '-osx64' + '_' + alt + '.dmg' %}
  {% set sig_link = download_link + '.asc' %}

Hiro's avatar
Hiro committed
34
  <a class="downloadLink" href="{{ download_link }}">64-bit</a> (<a href="{{ sig_link }}">sig</a>)
35
36
37
{% endmacro %}

{% macro render_linux(version, alt) %}
Matthew Finkel's avatar
Matthew Finkel committed
38
  {% set download_prefix = 'https://archive.torproject.org/tor-package-archive/torbrowser/' + version + '/' %}
39
40
  {% if alt == 'en' %}
    {% set alt = 'en-US' %}
Hiro's avatar
Hiro committed
41
42
  {% elif alt == 'es' %}
    {% set alt = 'es-ES' %}
43
44
45
46
47
48
  {% endif %}
  {% set download_link_64 = download_prefix + 'tor-browser-linux64-' + version + '_' + alt + '.tar.xz' %}
  {% set download_link_32 = download_prefix + 'tor-browser-linux32-' + version + '_' + alt + '.tar.xz' %}
  {% set sig_link_64 = download_link_64 + '.asc' %}
  {% set sig_link_32 = download_link_32 + '.asc' %}

Hiro's avatar
Hiro committed
49
  <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/>)
50
{% endmacro %}
Hiro's avatar
Hiro committed
51

RotationMatrix's avatar
RotationMatrix committed
52
53
54
55
56
57
58
{% macro render_android(version, arch) %}
  {% set download_link = 'https://dist.torproject.org/torbrowser/' + version + '/' + 'tor-browser-' + version + '-android-' + arch + '-multi.apk' %}
  {% set sig_link = download_link + '.asc' %}

  <a href="{{ download_link }}">{{ arch }}</a> (<a href="{{ sig_link }}">sig</a>)
{% endmacro %}

Hiro's avatar
Hiro committed
59
60
61
62
63
64
65
{% macro render_fdroid() %}
  <small class="badge-pill badge-dark mx-1 nick">S00N</small>
{% endmacro %}

{% macro render_onion_browser() %}
  <a class="mx-auto" href=""><u>Onion Browser.</u></a>
{% endmacro %}
Hiro's avatar
Hiro committed
66
67

{% macro render_tor_browser_manual() %}
Antonela's avatar
Antonela committed
68
<a class="mx-auto" href="https://tb-manual.torproject.org" target="_blank"><u>{{ _('Tor Browser manual') }}</u></a>
Hiro's avatar
Hiro committed
69
{% endmacro %}
70
71
72
73

{% macro render_tor_browser_blog_post() %}
<a class="mx-auto" href="https://blog.torproject.org/new-release-tor-browser-906" target="_blank"><u>{{ _('blog post') }}</u></a>
{% endmacro %}