commit 2aed0f19b70e585bc9cf3c7ec26701bfea8fe892 Author: Pili Guerra pili@piliguerra.com Date: Wed Mar 25 19:00:27 2020 +0000
Create page to list relay-associations. Will fix #63 --- .../relay-associations/contents.lr | 19 +++ databags/relay-associations.ini | 149 +++++++++++++++++++++ templates/relay-associations.html | 35 +++++ 3 files changed, 203 insertions(+)
diff --git a/content/relay-operations/community-resources/relay-associations/contents.lr b/content/relay-operations/community-resources/relay-associations/contents.lr new file mode 100644 index 0000000..28cc246 --- /dev/null +++ b/content/relay-operations/community-resources/relay-associations/contents.lr @@ -0,0 +1,19 @@ +_model: page +--- +color: primary +--- +title: Relay Associations +--- +html: relay-associations.html +--- +key: 6 +--- +section: Community Resources +--- +section_id: community-resources +--- +subtitle: Here is a list of currently active relay associations. +--- +body: + +Please let us know if you would like your relay association to be listed on this page. \ No newline at end of file diff --git a/databags/relay-associations.ini b/databags/relay-associations.ini new file mode 100644 index 0000000..3979727 --- /dev/null +++ b/databags/relay-associations.ini @@ -0,0 +1,149 @@ +[zwiebelfreunde] +link = +image = +label = Zwiebelfreunde e.V. +country = Germany +contact = +active = True +display = True +donate = + +[nosoignons] +link = https://nos-oignons.net/ +image = +label = Nos-oignons +country = France +contact = contact at nos-oignons.net +active = True +display = +donate = + +[enn] +link = https://enn.lu/ +image = +label = Frënn vun der Ënn A.S.B.L. +country = Luxembourg +contact = info@enn.lu +active = True +display = +donate = + +[hartvoorinternetvrijheid] +link = https://www.hartvoorinternetvrijheid.nl/ +image = +label = Hart voor Internetvrijheid +country = Netherlands +contact = bestuur@hartvoorinternetvrijheid.nl +active = True +display = +donate = + +[saveyourprivacy] +link = https://saveyourprivacy.net +image = +label = SaveYourPrivacy e.V. +country = Germany +contact = info@saveyourprivacy.net +active = True +display = +donate = + +[coldhak] +link = https://coldhak.ca/relays/ +image = +label = Coldhak +country = Canada +contact = https://coldhak.ca/about/ +active = True +display = +donate = + +[appliedprivacy] +link = https://appliedprivacy.net/ +image = +label = Foundation for Applied Privacy +country = Austria +contact = tor@appliedprivacy.net +active = True +display = +donate = + +[dfri] +link = https://www.dfri.se/ +image = +label = Föreningen för Digitala Fri- och Rättigheter +country = Sweden +contact = dfri@dfri.se +active = True +display = +donate = + +[calyxinstitute] +link = https://www.calyxinstitute.org +image = +label = The Calyx Institute +country = US +contact = nick@calyx.com +active = True +display = +donate = + +[noisetor] +link = https://noisetor.net +image = +label = NoiseTor +country = US +contact = +active = +display = +donate = + +[icetor] +link = https://icetor.is/ +image = +label = Icetor +country = Iceland +contact = admin <AT> icetor <dot> is +active = +display = +donate = + +[privacyfoundation] +link = https://www.privacyfoundation.ch/ +image = +label = Swiss Privacy Foundation +country = Switzerland +contact = office@privacyfoundation.ch +active = +display = +donate = + +[digitalcourage] +link = https://digitalcourage.de/support/tor +image = +label = Digital Courage +country = Germany +contact = +active = True +display = +donate = + +[accessnow] +link = https://accessnow.net +image = +label = Access Now +country = US +contact = +active = True +display = +donate = + +[brasshorncommunications] +link = https://brasshorncommunications.uk/projects/tor/ +image = +label = BrassHorn Communications +country = UK +contact = hello@brasshorncommunications.uk +active = True +display = +donate = \ No newline at end of file diff --git a/templates/relay-associations.html b/templates/relay-associations.html new file mode 100644 index 0000000..10448d8 --- /dev/null +++ b/templates/relay-associations.html @@ -0,0 +1,35 @@ +<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">Organization Name</th> + <th scope="col">Country</th> + </tr> + </thead> + <tbody> + {% for id, item in bag('relay-associations').items() %} + {% if item.active == 'True' %} + <tr> + <td> + {% if item.link|length %} + <a href="{{ item.link }}">{{ item.label }}</a> + {% else %} + {{ item.label }} + {% endif %} + </td> + + <td>{{ item.country }}</td> + </tr> + {% endif %} + {% endfor %} + </tbody> + </table> + </div> + </div> + </div> +</div> \ No newline at end of file