[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [community/staging] Edit fields to find out why builds crash



commit 7be8a0e2e3023a6bf5ff10908fe706741f238817
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Wed Mar 24 16:44:57 2021 +0100

    Edit fields to find out why builds crash
---
 .../training/resources/tor-training/contents.lr    | 39 +++++++++++-----------
 flowblocks/slide.ini                               |  4 +--
 templates/blocks/slide.html                        |  4 +--
 3 files changed, 24 insertions(+), 23 deletions(-)

diff --git a/content/training/resources/tor-training/contents.lr b/content/training/resources/tor-training/contents.lr
index 2e5cc02..ac82a0e 100644
--- a/content/training/resources/tor-training/contents.lr
+++ b/content/training/resources/tor-training/contents.lr
@@ -58,9 +58,9 @@ By running a Tor relay you can help make the Tor network:
 #### slide ####
 title: Types of Relays
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 ---
 
 #### slide ####
@@ -113,9 +113,9 @@ description:
 #### slide ####
 title: Relay requirements
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -189,9 +189,9 @@ description:
 #### slide ####
 title: Technical setup
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -312,9 +312,9 @@ About 3 hours after you started your relay it should appear on Metrics portal in
 #### slide ####
 title: More about relays
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -350,9 +350,9 @@ description:
 #### slide ####
 title: Network diversity
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -373,9 +373,9 @@ description:
 #### slide ####
 title: More about exit relays
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -401,9 +401,9 @@ description:
 #### slide ####
 title: Running relays with others
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -451,9 +451,9 @@ description:
 #### slide ####
 title: Bad relays
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -490,9 +490,9 @@ description:
 #### slide ####
 title: How do I get help running a Tor relay?
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
-
+background_image: '/static/images/onion-white.png'
 
 
 #### slide ####
@@ -514,5 +514,6 @@ name - email@xxxxxxxxxxx
 subtitle:
 PGP FINGERPRINT
 ----
-slide-layout: title-slide
+slide_layout: title-slide
 ----
+background_image: '/static/images/onion-white.png'
diff --git a/flowblocks/slide.ini b/flowblocks/slide.ini
index 7466391..eaa9afd 100644
--- a/flowblocks/slide.ini
+++ b/flowblocks/slide.ini
@@ -22,12 +22,12 @@ label = Background color
 type = string
 translate = False
 
-[fields.slide-layout]
+[fields.slide_layout]
 label = Slide layout
 type = string
 translate = False
 
-[fields.background-image]
+[fields.background_image]
 label = Background image
 type = string
 translate = False
diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html
index accf033..cd587cd 100644
--- a/templates/blocks/slide.html
+++ b/templates/blocks/slide.html
@@ -1,5 +1,5 @@
-{% if this.slide-layout == 'title-slide' %}
-  <section class="title" data-background-color="white">
+{% if this.slide_layout == "title-slide" %}
+  <section class="title" data-background-color="white" {% if this.background_image %} data-background_image="{{ this.background_image|asseturl }}" data-background-position="right bottom" data-background-size="3em" {% endif %} >
     <h3>{{ this.title }}</h3>
     <hr class="dark" />
     {% if this.subtitle %}



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits