hero-download.html 3.28 KB
Newer Older
Hiro's avatar
Hiro committed
1
<div class="row">
Antonela's avatar
Antonela committed
2
  <h1 class="mx-auto display-2 text-white text-center">{{ _('Defend yourself.') }}</h1>
Hiro's avatar
Hiro committed
3
</div>
Hiro's avatar
Hiro committed
4
<div class="row">
Antonela's avatar
Antonela committed
5
  <h3 class="mx-auto defend text-white text-center">{{ _('Protect yourself against tracking, surveillance, and censorship.') }}</h3>
Hiro's avatar
Hiro committed
6
</div>
Antonela's avatar
Antonela committed
7
<div class="row p-5 mx-auto">
Hiro's avatar
Hiro committed
8
  {% for id, item in bag('platforms').items() %}
Antonela's avatar
Antonela committed
9
    <div class="col-sm-6 col-md-3 py-3">
Hiro's avatar
Hiro committed
10
      <div class="oval-2 bg-darker">
Hiro's avatar
Hiro committed
11
        {% set alt_l = alt %}
12
        {% set t = bag('versions', 'torbrowser-stable') %}
13
        {% set download_prefix = '/dist/torbrowser/' + t.version + '/' %}
Hiro's avatar
Hiro committed
14
15
16
17
        {% if alt_l == 'en' %}
          {% set alt_l = 'en-US' %}
        {% elif alt_l == 'es' %}
          {% set alt_l = 'es-ES' %}
18
        {% endif %}
Hiro's avatar
Hiro committed
19
        {% if id == 'windows' %}
Hiro's avatar
Hiro committed
20
          {% set download_link = download_prefix + 'torbrowser-install-win64-' + t.version + '_' + alt_l + '.exe' %}
Hiro's avatar
Hiro committed
21
          {% set sig_link = download_link + '.asc' %}
22
        {% elif id == 'apple' %}
Hiro's avatar
Hiro committed
23
          {% set download_link = download_prefix + 'TorBrowser-' + t.version + '-osx64' + '_' + alt_l + '.dmg' %}
Hiro's avatar
Hiro committed
24
          {% set sig_link = download_link + '.asc' %}
25
        {% else %}
Hiro's avatar
Hiro committed
26
          {% set download_link = download_prefix + 'tor-browser-linux64-' + t.version + '_' + alt_l + '.tar.xz' %}
Hiro's avatar
Hiro committed
27
          {% set sig_link = download_link + '.asc' %}
28
        {% endif %}
Hiro's avatar
Hiro committed
29
        <a class="downloadLink" href="{{ download_link }}">
Hiro's avatar
Hiro committed
30
          <i class="text-light fab fa-{{ id }}-png"></i>
Hiro's avatar
Hiro committed
31
        </a>
Hiro's avatar
Hiro committed
32
        <a class="btn btn-primary mt-4" href="{{ download_link }}">{{ _('Download for') }} {{ item.label }}</a>
Hiro's avatar
Hiro committed
33
        <a class="link" href="{{ sig_link }}"><span class="nick text-white">{{ _('Signature') }}</span></a>
34
        <a class="link" href="{{ 'https://support.torproject.org/' + this.alt + '/tbb/how-to-verify-signature/' }}" target="_blank"><i style="font-size:10px;" class="text-light fas fa-question-circle"></i></a>
Hiro's avatar
Hiro committed
35
      </div>
Hiro's avatar
Hiro committed
36
    </div>
Hiro's avatar
Hiro committed
37
38
39
40
41
42
43
44
    {% endfor %}
    <div class="col-sm-6 col-md-3 py-3">
      <div class="oval-2 bg-darker mx-auto">
        <a href="#android">
          <i class="text-light fab fa-android-png"></i>
        </a>
        <a class="btn btn-primary mt-4" href="#android">{{ _('Download for Android') }}</a>
      </div>
Hiro's avatar
Hiro committed
45
    </div>
Hiro's avatar
Hiro committed
46
</div>
Hiro's avatar
Hiro committed
47

Antonela's avatar
Antonela committed
48
<div class="row p-5">
Antonela's avatar
Antonela committed
49
  <a class="mx-auto text-white py-3 text-center" href="{{ 'languages'|url(alt=this.alt) }}"><u>{{ _('Download in another language or platform') }}</u></a>
50
  <a class="mx-auto text-white py-3 text-center" href="{{ 'alpha'|url(alt=this.alt) }}"><u>{{ _('Download the latest alpha build') }}</u></a>
Antonela's avatar
Antonela committed
51
  <a class="mx-auto text-white py-3 text-center" href="{{ 'tor'|url(alt=this.alt) }}"><u>{{ _('Download Tor Source Code') }}</u></a>
Hiro's avatar
Hiro committed
52
</div>
Hiro's avatar
Hiro committed
53

Antonela's avatar
Antonela committed
54
55
56
57
58
<div class="row bg-darker my-5 p-3 rounded">
  {% from "macros/downloads.html" import render_tor_browser_blog_post %}
  <h5 class="mx-auto text-white text-center my-0"><i class="text-light fas fa-exclamation-circle text-warning px-2"></i>{{ _('Disabling Javascript: Please read the latest %s for more information.') |format(render_tor_browser_blog_post())| safe }}</h5>
</div>

Antonela's avatar
Antonela committed
59
60
<div class="hidden-sm row p-md-5 justify-content-center window-bg">
  <a class="mx-auto text-white text-center py-md-5" href="https://blog.torproject.org/category/tags/tor-browser"><u>{{ _('Read the latest release announcements') }}</u></a>
Hiro's avatar
Hiro committed
61
</div>