tpo/templates/download-tor.html
2024-05-15 13:22:02 +00:00

171 lines
7.4 KiB
HTML

<div class="container py-3 mt-5">
<div class="row">
{# put the body here directly using {{ md(_(...)) }} instead of in the contents file #}
<p></p>
</div>
</div>
<div class="container py-3">
<div class="row">
<h2 class="text-primary">{{ _('Tor Source') }}</h2>
<table class="table">
<thead>
<tr>
<th scope="col">{{ _('Version') }}</th>
<th></th>
</tr>
</thead>
<tbody>
{% set t = bag('versions', 'tor-stable') %}
{% set a = bag('versions', 'tor-alpha') %}
{% set download_link = 'https://dist.torproject.org/tor-' + t.version + '.tar.gz' %}
{% set changelog_link = 'https://gitlab.torproject.org/tpo/core/tor/-/blob/tor-' + t.version + '/ChangeLog' %}
{% set alpha_changelog_link = 'https://gitlab.torproject.org/tpo/core/tor/-/blob/tor-' + a.version + '/ChangeLog' %}
{% set checksum_link = download_link + '.sha256sum' %}
{% set sig_link = checksum_link + '.asc' %}
{% set alpha_download_link = 'https://dist.torproject.org/tor-' + a.version + '.tar.gz' %}
{% set alpha_checksum_link = alpha_download_link + '.sha256sum' %}
{% set alpha_sig_link = alpha_checksum_link + '.asc' %}
<tr>
<td>{{ t.version }}</td>
<td><a href="{{ changelog_link }}">{{ _('Changelog') }}</a></td>
<td class="text-right"><a href="{{ download_link }}">{{ _('Download') }}</a> (<a href="{{ checksum_link }}">{{ _('checksum') }}</a> | <a href="{{ sig_link }}">{{ _('sig') }}</a>) <a class="link" href="{{ 'https://support.torproject.org/' + this.alt + '/little-t-tor/verify-little-t-tor/' }}" target="_blank" data-toggle="tooltip" data-placement="top" title="{{ _('Learn how to verify a signature') }}"><i style="font-size:10px;" class="fas fa-question-circle"></i></a></td>
</tr>
{% if t.version != a.version %}
<tr>
<td>{{ a.version }}</td>
<td><a href="{{ alpha_changelog_link }}">{{ _('Changelog') }}</a></td>
<td class="text-right"><a href="{{ alpha_download_link }}">{{ _('Download') }}</a> (<a href="{{ alpha_checksum_link }}">{{ _('checksum') }}</a> | <a href="{{ alpha_sig_link }}">{{ _('sig') }}</a>) <a class="link" href="{{ 'https://support.torproject.org/' + this.alt + '/little-t-tor/verify-little-t-tor/' }}" target="_blank" data-toggle="tooltip" data-placement="top" title="{{ _('Learn how to verify a signature') }}"><i style="font-size:10px;" class="fas fa-question-circle"></i></a></td>
</tr>
{% endif %}
</tbody>
</table>
</div>
<div class="row">
<h2 class="text-primary">{{ _('Tor Expert Bundle') }}</h2>
<p>
{{ _('The tor expert bundle contains the tor and pluggable transports binaries, bridge strings, and geoip data used in Tor Browser. The two versions shown indicate the version of Tor Browser these particular binaries were built for and the version of the contained tor daemon. These packages are intended for developers who need to bundle tor with their applications.')}}
</p>
{% set stable = bag('versions', 'torbrowser-stable') %}
{% set windows_stable = bag('versions', 'torbrowser-win-stable') %}
{% set macos_stable = bag('versions', 'torbrowser-macos-stable') %}
{% set linux_stable = bag('versions', 'torbrowser-linux-stable') %}
{% set android_stable = bag('versions', 'torbrowser-android-stable') %}
{% set alpha = bag('versions', 'torbrowser-alpha') %}
{% set windows_alpha = bag('versions', 'torbrowser-win-alpha') %}
{% set macos_alpha = bag('versions', 'torbrowser-macos-alpha') %}
{% set linux_alpha = bag('versions', 'torbrowser-linux-alpha') %}
{% set android_alpha = bag('versions', 'torbrowser-android-alpha') %}
{% from "macros/downloads.html" import render_tor_expert_bundle %}
<table class="table">
<thead>
<tr>
<th scope="col">{{ _('OS (Architecture)') }}</th>
<th scope="col">{{ _('Stable') }}</th>
<th scope="col">{{ _('Alpha') }}</th>
</tr>
</thead>
<tbody>
<!-- Windows -->
<tr>
<td>{{ _('Windows') }} (i686) </td>
<td>
{{ render_tor_expert_bundle(windows_stable.version, stable.tor, 'windows', 'i686') }}
</td>
<td>
{{ render_tor_expert_bundle(windows_alpha.version, alpha.tor, 'windows', 'i686') }}
</td>
</tr>
<tr>
<td>{{ _('Windows') }} (x86_64) </td>
<td>
{{ render_tor_expert_bundle(windows_stable.version, stable.tor, 'windows', 'x86_64') }}
</td>
<td>
{{ render_tor_expert_bundle(windows_alpha.version, alpha.tor, 'windows', 'x86_64') }}
</td>
</tr>
</tr>
<!-- macOS -->
<tr>
<td>{{ _('macOS') }} (x86_64)</td>
<td>
{{ render_tor_expert_bundle(macos_stable.version, stable.tor, 'macos', 'x86_64') }}
</td>
<td>
{{ render_tor_expert_bundle(macos_alpha.version, alpha.tor, 'macos', 'x86_64') }}
</td>
</tr>
<tr>
<td>{{ _('macOS') }} (aarch64)</td>
<td>
{{ render_tor_expert_bundle(macos_stable.version, stable.tor, 'macos', 'aarch64') }}
</td>
<td>
{{ render_tor_expert_bundle(macos_alpha.version, alpha.tor, 'macos', 'aarch64') }}
</td>
</tr>
<!-- Linux -->
<tr>
<td>{{ _('GNU/Linux') }} (i686)</td>
<td>
{{ render_tor_expert_bundle(linux_stable.version, stable.tor, 'linux', 'i686') }}
</td>
<td>
{{ render_tor_expert_bundle(linux_alpha.version, alpha.tor, 'linux', 'i686') }}
</td>
</tr>
</tr>
<tr>
<td>{{ _('GNU/Linux') }} (x86_64)</td>
<td>
{{ render_tor_expert_bundle(linux_stable.version, stable.tor, 'linux', 'x86_64') }}
</td>
<td>
{{ render_tor_expert_bundle(linux_alpha.version, alpha.tor, 'linux', 'x86_64') }}
</td>
</tr>
</tr>
<!-- Android -->
<tr>
<td>{{ _('Android') }} (x86)</td>
<td>
{{ render_tor_expert_bundle(android_stable.version, stable.tor, 'android', 'x86') }}
</td>
<td>
{{ render_tor_expert_bundle(android_alpha.version, alpha.tor, 'android', 'x86') }}
</td>
</tr>
</tr>
<tr>
<td>{{ _('Android') }} (x86_64)</td>
<td>
{{ render_tor_expert_bundle(android_stable.version, stable.tor, 'android', 'x86_64') }}
</td>
<td>
{{ render_tor_expert_bundle(android_alpha.version, alpha.tor, 'android', 'x86_64') }}
</td>
</tr>
</tr>
<td>{{ _('Android') }} (armv7)</td>
<td>
{{ render_tor_expert_bundle(android_stable.version, stable.tor, 'android', 'armv7') }}
</td>
<td>
{{ render_tor_expert_bundle(android_alpha.version, alpha.tor, 'android', 'armv7') }}
</td>
</tr>
<tr>
<td>{{ _('Android') }} (aarch64)</td>
<td>
{{ render_tor_expert_bundle(android_stable.version, stable.tor, 'android', 'aarch64') }}
</td>
<td>
{{ render_tor_expert_bundle(android_alpha.version, alpha.tor, 'android', 'aarch64') }}
</td>
</tr>
</tbody>
</table>
</div>
</div>