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

pili at torproject.org pili at torproject.org
Wed Apr 8 18:13:58 UTC 2020


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

    Add printable outreach materials
---
 content/outreach/kit/contents.lr  |  2 +-
 databags/outreach-materials.ini   | 42 +++++++++++++++++++++++++++++++++++++++
 templates/outreach-materials.html | 34 +++++++++++++++++++++++++++++++
 3 files changed, 77 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..e530e50
--- /dev/null
+++ b/databags/outreach-materials.ini
@@ -0,0 +1,42 @@
+[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
+
+[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
+
+[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
+
+[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
+
+[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
+
+[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
\ No newline at end of file
diff --git a/templates/outreach-materials.html b/templates/outreach-materials.html
new file mode 100644
index 0000000..d34d999
--- /dev/null
+++ b/templates/outreach-materials.html
@@ -0,0 +1,34 @@
+<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>
+            </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>
+            </tr>
+          {% endfor %}
+          </tbody>
+        </table>
+      </div>
+    </div>
+  </div>
+</div>
\ No newline at end of file



More information about the tor-commits mailing list