[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [community/slideshow] Edit templates model flows and content
commit 326ad4ce61bad07d1241782fc672790186c419d7
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Thu Mar 25 16:43:10 2021 +0100
Edit templates model flows and content
---
content/training/resources/tor-training/contents.lr | 20 ++++++++++----------
flowblocks/slide.ini | 10 ++++++++++
templates/blocks/slide.html | 2 +-
3 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/content/training/resources/tor-training/contents.lr b/content/training/resources/tor-training/contents.lr
index fa5c835..8292dd2 100644
--- a/content/training/resources/tor-training/contents.lr
+++ b/content/training/resources/tor-training/contents.lr
@@ -60,7 +60,7 @@ title: Types of Relays
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -119,7 +119,7 @@ title: Relay requirements
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -198,7 +198,7 @@ title: Technical setup
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -324,7 +324,7 @@ title: More about relays
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -365,7 +365,7 @@ title: Network diversity
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -391,7 +391,7 @@ title: More about exit relays
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -422,7 +422,7 @@ title: Running relays with others
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -475,7 +475,7 @@ title: Bad relays
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -517,7 +517,7 @@ title: How do I get help running a Tor relay?
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
@@ -544,7 +544,7 @@ PGP FINGERPRINT
----
slide_layout: title-slide
----
-background_image: '/static/images/onion-white.png'
+background_image: /static/images/onion-white.png
----
description:
-
diff --git a/flowblocks/slide.ini b/flowblocks/slide.ini
index eaa9afd..78effe7 100644
--- a/flowblocks/slide.ini
+++ b/flowblocks/slide.ini
@@ -6,6 +6,11 @@ label = Title
type = markdown
translate = True
+[fields.subtitle]
+label = Subtitle
+type = markdown
+translate = True
+
[fields.description]
label = Description
type = markdown
@@ -31,3 +36,8 @@ translate = False
label = Background image
type = string
translate = False
+
+[fields.author]
+label = Author
+type = string
+translate = False
diff --git a/templates/blocks/slide.html b/templates/blocks/slide.html
index efc2ea4..2d89823 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.background_image %} data-background_image="{{ this.background_image|asseturl }}" data-background-position="right bottom" data-background-size="3em" {% endif %} >
+ <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