[tor-commits] [tpo/staging] Add tor core to /download

emmapeel at torproject.org emmapeel at torproject.org
Wed May 29 07:43:25 UTC 2019


commit 26fa04a1f4f0dbbeb6462810fca9a0fd65766e9b
Author: Antonela <hola at antonela.me>
Date:   Tue Apr 16 10:55:11 2019 -0300

    Add tor core to /download
    
    #30082
    #29991
---
 content/download/tor/contents.lr | 13 +++++++++++++
 templates/download-tor.html      | 23 +++++++++++++++++++++++
 templates/hero-download-tor.html |  6 ++++++
 templates/hero-download.html     |  4 +---
 4 files changed, 43 insertions(+), 3 deletions(-)

diff --git a/content/download/tor/contents.lr b/content/download/tor/contents.lr
new file mode 100644
index 0000000..1317a4d
--- /dev/null
+++ b/content/download/tor/contents.lr
@@ -0,0 +1,13 @@
+_template: jumbotron.html
+---
+section: Download
+---
+section_id: download
+---
+html: download-tor.html
+---
+color: dark
+---
+title: Download Tor Source Code
+---
+body:
diff --git a/templates/download-tor.html b/templates/download-tor.html
new file mode 100644
index 0000000..ed281c5
--- /dev/null
+++ b/templates/download-tor.html
@@ -0,0 +1,23 @@
+<div class="container py-3 mt-5">
+  <div class="row">
+    <p>{{ this.body }}</p>
+  </div>
+</div>
+<div class="container py-3">
+  <div class="row">
+    <table class="table">
+      <thead>
+        <tr>
+          <th scope="col">Stable</th>
+          <th scope="col">Unstable</th>
+        </tr>
+      </thead>
+      <tbody>
+          <tr>
+            <td></td>
+            <td></td>
+          </tr>
+      </tbody>
+    </table>
+  </div>
+</div>
diff --git a/templates/hero-download-tor.html b/templates/hero-download-tor.html
new file mode 100644
index 0000000..6f84383
--- /dev/null
+++ b/templates/hero-download-tor.html
@@ -0,0 +1,6 @@
+<div class="row">
+  <h6 class="mx-auto text-white text-uppercase">{% block section %}Grow the network{% endblock %}</h6>
+</div>
+<div class="row p-5">
+  <h2 class="mx-auto display-3 text-white text-capitalize text-center">{% block title %}{{ this.title }}{% endblock %}</h2>
+</div>
diff --git a/templates/hero-download.html b/templates/hero-download.html
index b0657be..212c837 100644
--- a/templates/hero-download.html
+++ b/templates/hero-download.html
@@ -38,9 +38,7 @@
 <div class="row p-5">
   <a class="mx-auto text-white py-3" href="{{ 'languages'|url(alt=this.alt) }}"><u>{{ _('Download in another language') }}</u></a>
   <a class="mx-auto text-white py-3" href="{{ 'alpha'|url(alt=this.alt) }}"><u>{{ _('Advanced Install Options') }}</u></a>
-  {% set v = bag('versions', 'tor-stable') %}
-  {% set download_source = 'https://dist.torproject.org/tor-' + v.version + '.tar.gz' %}
-  <a class="mx-auto text-white py-3" href="{{ download_source }}"><u>{{ _('Download Tor Source Tarball') }}</u></a>
+  <a class="mx-auto text-white py-3" href="{{ 'tor'|url(alt=this.alt) }}"><u>{{ _('Download Tor Source Code') }}</u></a>
 </div>
 <div class="hidden-sm row p-5 justify-content-center window-bg">
   <a class="mx-auto text-white text-center py-5" href="https://blog.torproject.org/category/tags/tor-browser"><u>{{ _('Read the latest release announcements') }}</u></a>





More information about the tor-commits mailing list