[tor-commits] [community/staging] Add printable outreach materials

hiro at torproject.org hiro at torproject.org
Sun Mar 21 19:17:28 UTC 2021


commit 14bbc3b24fc29135d5e2d38ee3985da348b141c7
Author: Pili Guerra <pili at piliguerra.com>
Date:   Wed Apr 8 18:32:23 2020 +0100

    Add printable outreach materials
    
    Closes #28
---
 content/outreach/kit/contents.lr  |  2 +-
 databags/outreach-materials.ini   | 54 +++++++++++++++++++++++++++++++++++++++
 templates/outreach-materials.html | 36 ++++++++++++++++++++++++++
 3 files changed, 91 insertions(+), 1 deletion(-)

diff --git a/content/outreach/kit/contents.lr b/content/outreach/kit/contents.lr
index 59e782a..7f00085 100644
--- a/content/outreach/kit/contents.lr
+++ b/content/outreach/kit/contents.lr
@@ -12,7 +12,7 @@ subtitle: This kit includes printable flyers, stickers, and other materials to g
 ---
 key: 1
 ---
-html: two-columns-page.html
+html: outreach-materials.html
 ---
 body:
 
diff --git a/databags/outreach-materials.ini b/databags/outreach-materials.ini
new file mode 100644
index 0000000..178b23b
--- /dev/null
+++ b/databags/outreach-materials.ini
@@ -0,0 +1,54 @@
+[anti-censorship]
+location = https://gitlab.torproject.org/torproject/community/outreach/-/raw/master/print/en_EN/
+filename_front = Front_anti-censorship_en_EN.pdf
+filename_back = Back_stencil_en_EN.pdf
+label = Tor for Anti-censorship
+type = handout
+year = 2019
+
+[feminists]
+location = https://gitlab.torproject.org/torproject/community/outreach/-/raw/master/print/en_EN/
+filename_front = Front_feminist_en_EN.pdf
+filename_back = Back_feminist_en_EN.pdf
+label = Tor for Feminists
+type = handout
+year = 2019
+
+[human-rights]
+location = https://gitlab.torproject.org/torproject/community/outreach/-/raw/master/print/en_EN/
+filename_front = Front_humanrights_en_EN.pdf
+filename_back = Back_stencil_en_EN.pdf
+label = Tor for Human Rights
+type = handout
+year = 2019
+
+[privacy]
+location = https://gitlab.torproject.org/torproject/community/outreach/-/raw/master/print/en_EN/
+filename_front = Front_privacy_en_EN.pdf
+filename_back = Back_stencil_en_EN.pdf
+label = Tor for Privacy
+type = handout
+year = 2019
+
+[one-pager]
+location = https://media.torproject.org/misc/
+filename_front = 2018-08-Tor-one-pager.pdf#page=1
+filename_back = 2018-08-Tor-one-pager.pdf#page=2
+label = Tor one pager
+type = handout
+year = 2018
+
+[relay]
+location = https://gitlab.torproject.org/torproject/ux/media/-/raw/master/outreach-material/handouts/
+filename_front = tor-relay_4.25x11_card_front.jpg
+filename_back = tor-relay-4.25x11_card_back.jpg
+label = Run a relay
+type = handout
+year = 2018
+
+[brochure]
+location = https://media.torproject.org/misc/2015-03-tor-brochure/
+filename = tor-brochure-en.pdf
+label = Tor Brochure
+type = brochure
+year = 2015
\ No newline at end of file
diff --git a/templates/outreach-materials.html b/templates/outreach-materials.html
new file mode 100644
index 0000000..d0bdaa8
--- /dev/null
+++ b/templates/outreach-materials.html
@@ -0,0 +1,36 @@
+<div class="row pt-5">
+  {% include 'sidenav.html' %}
+  <div class="col-sm-12 col-xs-12  ml-sm-auto col-md-9 col-lg-9 {{ bag('alternatives', this.alt, 'order') }}">
+    {{ this.body }}
+    <div class="container py-3">
+      <div class="row">
+        <table class="table">
+          <thead>
+            <tr>
+              <th scope="col">Title</th>
+              <th scope="col">Type</th>
+              <th scope="col">Links</th>
+              <th scope="col">Last Updated</th>
+            </tr>
+          </thead>
+          <tbody>
+          {% for id, item in bag('outreach-materials').items() %}
+            <tr>
+              <td>{{ item.label }}</td>
+              <td>{{ item.type }}</td>
+              <td>
+                {% if item.type=='handout' %}
+                  <a href="{{item.location}}{{item.filename_front}}">Front</a> / <a href="{{item.location}}{{item.filename_back}}">Back</a>
+                {% else %}
+                  <a href="{{item.location}}{{item.filename}}">File</a>
+                {% endif %}
+              </td>
+              <td>{{ item.year }}</td>
+            </tr>
+          {% endfor %}
+          </tbody>
+        </table>
+      </div>
+    </div>
+  </div>
+</div>
\ No newline at end of file





More information about the tor-commits mailing list