[tor-commits] [community/staging] Training section

hiro at torproject.org hiro at torproject.org
Fri Jul 5 13:13:31 UTC 2019


commit 6b6a515a2146371e7ccf79ea72a39a38e062def8
Author: Pili Guerra <pili at piliguerra.com>
Date:   Wed Jun 12 17:56:11 2019 +0200

    Training section
---
 content/training/best-practices/contents.lr        |  58 +++++++++++++++++++++
 content/training/resources/contents.lr             |  19 +++++++
 content/training/resources/tor-network-2019.odp    | Bin 0 -> 244102 bytes
 content/training/resources/tor-network-2019.odp.lr |  13 +++++
 content/training/resources/tor-network-2019.pdf    | Bin 0 -> 524047 bytes
 content/training/resources/tor-network-2019.pdf.lr |  13 +++++
 .../resources/tor-slides-full-deck-2019.odp        | Bin 0 -> 3569187 bytes
 .../resources/tor-slides-full-deck-2019.odp.lr     |  13 +++++
 .../resources/tor-slides-full-deck-2019.pdf        | Bin 0 -> 2344713 bytes
 .../resources/tor-slides-full-deck-2019.pdf.lr     |  13 +++++
 models/resource.ini                                |  32 ++++++++++++
 models/resources.ini                               |  34 ++++++++++++
 .../i18n/__pycache__/lektor_i18n.cpython-37.pyc    | Bin 15379 -> 15397 bytes
 templates/macros/resources.html                    |   8 +++
 templates/resource.html                            |   1 +
 templates/resources.html                           |  29 +++++++++++
 templates/training.html                            |  17 ++++--
 17 files changed, 247 insertions(+), 3 deletions(-)

diff --git a/content/training/best-practices/contents.lr b/content/training/best-practices/contents.lr
new file mode 100644
index 0000000..741685b
--- /dev/null
+++ b/content/training/best-practices/contents.lr
@@ -0,0 +1,58 @@
+section: training
+---
+section_id: training
+---
+color: primary
+---
+_template: layout.html
+---
+title: Training Best Practices
+---
+subtitle: Good preparation is essential to an effective and safe training, so we've curated some resources to help you make the most of your training event.
+---
+cta: Best Practices for Trainers
+---
+key: 1
+---
+html: two-columns-page.html
+---
+body:
+
+Running security trainings is a fun and rewarding way to help your community conduct human rights work safely. Good preparation is essential to an effective and safe training, so we've curated some resources to help you make the most of your training event. 
+
+## Before the training
+
+_Am I the right person to give this training?_
+
+Security trainings can help people communicate and use the internet safely, but there are additional considerations to be made before training some at-risk groups. That's why we recommend this resource from EFF's Security Education Companion, ["Am I the right person to give this training?"](https://sec.eff.org/articles/right-person-to-train). This resource can help you be sure that you're doing the best by the community of people you wish to train. 
+
+Other questions to ask yourself before deciding to do a training:
+
+- How will you assess the needs of your group? What needs can you meet?
+- How will you assess the skill level of your group? What skill levels can you teach to?
+
+Once you've answered those questions, you're ready to plan your training!
+
+1. Find a location that is accessible, affordable, has an internet connection and other materials like a white board, projector, and screen. Make sure that the location is safe for your attendees to visit. 
+2. Promote your event in your community's spaces, taking safety into consideration. Under many circumstances, social media is great for promotion, but for higher risk groups, you may want to use a smaller word-of-mouth network or require community members to share information individually to other trusted people. 
+3. Create localized handouts for some of the more difficult concepts that you'll be teaching.
+4. Make sure you have plenty of stickers to hand out to participants!
+5. Create a link list of all the resources you'll be talking about. This includes downloads and PDFs of handouts. You'll share this link list on a whiteboard or project it at the training. 
+6. Determine how you'll do hands-on assistance at your training. Will you be able to handle this alone? Or will you require partners? If you need more help, make sure the partners you're bringing in are aware of the safety needs of the community, and communicate with your contacts in the community to make sure they're okay with you bringing in additional trainers. 
+7. Make sure your presentation is up-to-date (both information and screenshots) and save your presentation in two file formats -- for example, odp and pdf -- and on at least one additional device -- for example, on your computer and on a USB stick. 
+8. Decide how you will facilitate a safer space. We recommend using the Tor Code of Conduct. You can also start the training by asking participants to come up with their own community agreements for the space. 
+
+## At the training
+
+1. Create an agenda and share it on a projection or on a whiteboard so that your participants can be prepared for the day. 
+2. Communicate about how much time the training will take, and when breaks will happen. Make sure you take breaks!
+3. Communicate about when you'll take questions, either during the training, at the end, or both. 
+4. Communicate about how you'll offer hands-on help (if at all).
+5. Communicate about how participants can contact you securely after the training. 
+6. Show the participants the resources at community.torproject.org and support.torproject.org. 
+7. Show the participants other resources like sec.eff.org. 
+
+## After the training
+
+1. Think about how you will evaluate your success at the training. You may want to create a follow up survey, or at least contact participants and ask them to share their feedback with you. 
+
diff --git a/content/training/resources/contents.lr b/content/training/resources/contents.lr
new file mode 100644
index 0000000..58a6907
--- /dev/null
+++ b/content/training/resources/contents.lr
@@ -0,0 +1,19 @@
+section: training
+---
+section_id: training
+---
+color: primary
+---
+_template: layout.html
+---
+title: Training Resources
+---
+subtitle: Do you teach your community about using Tor? These resources are for you.
+---
+key: 2
+---
+html: resources.html
+---
+body:
+
+Do you teach your community about using Tor? These training resources are for you.
\ No newline at end of file
diff --git a/content/training/resources/tor-network-2019.odp b/content/training/resources/tor-network-2019.odp
new file mode 100644
index 0000000..2d24160
Binary files /dev/null and b/content/training/resources/tor-network-2019.odp differ
diff --git a/content/training/resources/tor-network-2019.odp.lr b/content/training/resources/tor-network-2019.odp.lr
new file mode 100644
index 0000000..d1abc51
--- /dev/null
+++ b/content/training/resources/tor-network-2019.odp.lr
@@ -0,0 +1,13 @@
+_model: resource
+---
+title: Tor Network
+---
+description: ODP file
+---
+type: odp
+---
+date: 2019
+---
+file: tor-network-2019.odp
+---
+key: 1
\ No newline at end of file
diff --git a/content/training/resources/tor-network-2019.pdf b/content/training/resources/tor-network-2019.pdf
new file mode 100644
index 0000000..a5187ea
Binary files /dev/null and b/content/training/resources/tor-network-2019.pdf differ
diff --git a/content/training/resources/tor-network-2019.pdf.lr b/content/training/resources/tor-network-2019.pdf.lr
new file mode 100644
index 0000000..5a84664
--- /dev/null
+++ b/content/training/resources/tor-network-2019.pdf.lr
@@ -0,0 +1,13 @@
+_model: resource
+---
+title: Tor Network
+---
+description: PDF file
+---
+type: pdf
+---
+date: 2019
+---
+file: tor-network-2019.pdf
+---
+key: 0
\ No newline at end of file
diff --git a/content/training/resources/tor-slides-full-deck-2019.odp b/content/training/resources/tor-slides-full-deck-2019.odp
new file mode 100644
index 0000000..66d3d70
Binary files /dev/null and b/content/training/resources/tor-slides-full-deck-2019.odp differ
diff --git a/content/training/resources/tor-slides-full-deck-2019.odp.lr b/content/training/resources/tor-slides-full-deck-2019.odp.lr
new file mode 100644
index 0000000..97ef6dc
--- /dev/null
+++ b/content/training/resources/tor-slides-full-deck-2019.odp.lr
@@ -0,0 +1,13 @@
+_model: resource
+---
+title: Tor Network
+---
+description: ODP file
+---
+type: odp
+---
+date: 2019
+---
+file: tor-slides-full-deck-2019.odp
+---
+key: 3
\ No newline at end of file
diff --git a/content/training/resources/tor-slides-full-deck-2019.pdf b/content/training/resources/tor-slides-full-deck-2019.pdf
new file mode 100644
index 0000000..6933dcf
Binary files /dev/null and b/content/training/resources/tor-slides-full-deck-2019.pdf differ
diff --git a/content/training/resources/tor-slides-full-deck-2019.pdf.lr b/content/training/resources/tor-slides-full-deck-2019.pdf.lr
new file mode 100644
index 0000000..86b9049
--- /dev/null
+++ b/content/training/resources/tor-slides-full-deck-2019.pdf.lr
@@ -0,0 +1,13 @@
+_model: resource
+---
+title: Tor Network
+---
+description: PDF file
+---
+type: pdf
+---
+date: 2019
+---
+file: tor-slides-full-deck-2019.pdf
+---
+key: 3
\ No newline at end of file
diff --git a/models/resource.ini b/models/resource.ini
new file mode 100644
index 0000000..2198873
--- /dev/null
+++ b/models/resource.ini
@@ -0,0 +1,32 @@
+[model]
+name = Resource
+label = {{ this.title }}
+
+[fields.name]
+label = Name
+type = string
+translate = True
+
+[fields.link]
+label = Link
+type = string
+
+[fields.description]
+label = Description
+type = string
+
+[fields.type]
+label = Type
+type = string
+
+[fields.date]
+label = date
+type = string
+
+[fields.file]
+label = File
+type = string
+
+[fields.key]
+label = Key
+type = string
\ No newline at end of file
diff --git a/models/resources.ini b/models/resources.ini
new file mode 100644
index 0000000..1df9906
--- /dev/null
+++ b/models/resources.ini
@@ -0,0 +1,34 @@
+[model]
+name = Resources
+label = {{ this.title }}
+hidden = yes
+
+[fields.title]
+label = Title
+type = string
+
+[fields.section]
+label = Section
+type = string
+translate = True
+
+[fields.section_id]
+label = Section_id
+type = string
+translate = False
+
+[fields.body]
+label = Body
+type = markdown
+
+[fields.color]
+label = Color
+type = string
+
+[fields.html]
+label = Html
+type = string
+
+[children]
+model = resource
+order_by = key
\ No newline at end of file
diff --git a/packages/i18n/__pycache__/lektor_i18n.cpython-37.pyc b/packages/i18n/__pycache__/lektor_i18n.cpython-37.pyc
index 52322b7..488bd31 100644
Binary files a/packages/i18n/__pycache__/lektor_i18n.cpython-37.pyc and b/packages/i18n/__pycache__/lektor_i18n.cpython-37.pyc differ
diff --git a/templates/macros/resources.html b/templates/macros/resources.html
new file mode 100644
index 0000000..e632faf
--- /dev/null
+++ b/templates/macros/resources.html
@@ -0,0 +1,8 @@
+{% macro render_resource(item) %}
+<tr>
+    <td><a href="{{ item|url }}">{{ item.file }}</a></td>
+    <td>{{ item.description }}</td>
+    <td>{{ item.type}}</td>
+    <td>{{ item.date }}</td>
+</tr>
+{% endmacro %}
diff --git a/templates/resource.html b/templates/resource.html
new file mode 100644
index 0000000..0b1bdf2
--- /dev/null
+++ b/templates/resource.html
@@ -0,0 +1 @@
+{{ this.name }}
\ No newline at end of file
diff --git a/templates/resources.html b/templates/resources.html
new file mode 100644
index 0000000..d40c313
--- /dev/null
+++ b/templates/resources.html
@@ -0,0 +1,29 @@
+<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">Description</th>
+              <th scope="col">Formats</th>
+              <th scope="col">Last Updated</th>
+            </tr>
+          </thead>
+          <tbody>
+            {% from "macros/resources.html" import render_resource %}
+            {% for item in this.attachments %}
+              {{ render_resource(item) }}
+            {% endfor %}
+          </tbody>
+        </table>
+      </div>
+    </div>
+  </div>
+</div>
+
+
+
diff --git a/templates/training.html b/templates/training.html
index a7fcbb6..65c7187 100644
--- a/templates/training.html
+++ b/templates/training.html
@@ -7,10 +7,21 @@
       <img src="/static/images/home/png/{{ this.section_id }}.png" class="img-fluid" alt="{{ _(this.section) }}" />
     </div>
   </div>
-
   <div class="row py-5">
-    <h2 class="text-primary text-center mx-auto"><u>{{ _('Resources') }}</u>
-    </h2>
+    {% for child in this.children|sort(attribute='key') %}
+      {% if child.key != '0' %}
+      <div class="col-sm-6 col-md-6 col-sm-12 col-xl-6 py-4">
+        <div class="card h-100 border-0">
+          <div class="card-body">
+            <h2 class="text-primary display-2"><i class="fas fa-{{ child.image }}"></i></h2>
+            <h4 class="card-title text-primary">{{ child.title }}</h4>
+            <p class="card-text">{{ child.subtitle }}</p>
+            <a href="{{ child.path|url }}">{{ child.cta }} <i class="fas fa-arrow-right"></i></a>
+          </div>
+        </div>
+      </div>
+      {% endif %}
+    {% endfor %}
   </div>
   <div class="row py-5 text-center mx-auto">
     <h2 class="display-4 text-primary text-center mx-auto">{{ _('Join the Community') }}</h2>





More information about the tor-commits mailing list