[tor-commits] [donate-static/staging] Fix crypto page template not displaying crypto addresses

kez at torproject.org kez at torproject.org
Wed Jun 30 17:03:03 UTC 2021


commit 2a45990cc2bdf5e12f6ee780e29829729045f669
Author: kez <kez at torproject.org>
Date:   Tue Jun 29 15:24:51 2021 -0400

    Fix crypto page template not displaying crypto addresses
---
 content/cryptocurrency/contents.lr | 4 ++--
 models/crypto-page.ini             | 9 +++++++++
 templates/cryptocurrency.html      | 1 +
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/content/cryptocurrency/contents.lr b/content/cryptocurrency/contents.lr
index c49fd436..8b2d10e7 100644
--- a/content/cryptocurrency/contents.lr
+++ b/content/cryptocurrency/contents.lr
@@ -1,6 +1,6 @@
-_model: donate-page
+_model: crypto-page
 ---
-_template: donate-empty.html
+_template: cryptocurrency.html
 ---
 title: Cryptocurrency
 ---
diff --git a/models/crypto-page.ini b/models/crypto-page.ini
new file mode 100644
index 00000000..4e4d7c84
--- /dev/null
+++ b/models/crypto-page.ini
@@ -0,0 +1,9 @@
+[model]
+name = Donate Page
+label = {{ this.title }}
+inherits = donate-page
+
+[fields.body]
+label = Body
+type = html
+translate = False
\ No newline at end of file
diff --git a/templates/cryptocurrency.html b/templates/cryptocurrency.html
index d0715784..c7a13d03 100644
--- a/templates/cryptocurrency.html
+++ b/templates/cryptocurrency.html
@@ -1,3 +1,4 @@
+{% extends "layout.html" %}
 {% block content %}
   <div class="cryptocurrency">
     <div class="payment-other-div container">



More information about the tor-commits mailing list