commit b835a137976967a398524f90b1f273f000a59df2
Author: kez <[email protected]>
Date: Wed Jun 30 02:52:32 2021 -0400
Move the /champions-of-privacy page to markdown
See: tpo/web/donate-static#34
---
content/champions-of-privacy/contents.lr | 27 ++++++++++++++-------------
models/champions-of-privacy.ini | 13 +++++++++++++
templates/champions-of-privacy.html | 10 ++++++++++
templates/donate-form.html | 2 +-
4 files changed, 38 insertions(+), 14 deletions(-)
diff --git a/content/champions-of-privacy/contents.lr
b/content/champions-of-privacy/contents.lr
index 254bc59b..959a1aff 100644
--- a/content/champions-of-privacy/contents.lr
+++ b/content/champions-of-privacy/contents.lr
@@ -1,8 +1,8 @@
-_model: donate-form
+_model: champions-of-privacy
---
frequency: single
---
-_template: donate-form.html
+_template: champions-of-privacy.html
---
body:
---
@@ -12,17 +12,18 @@ title: Champions of Privacy
---
intro:
-<div class="mx-auto fixed-width col-7">
- <p></p>
- <p>Champions of Privacy make a significant pledge of $1,000 or
moreâcreating a steady, reliable source of funds to help us be agile in our
defense against the growing threats to privacy, freedom of expression, and
access to information online.</p>
- <p>As a Champion of Privacy, you'll receive exclusive gifts and invitations
to online events that will give you insider access to what's happening at
Tor.</p>
- <p>We believe everyone in the world should be able to enjoy the luxury our
tools provide: private access to the open web. The Tor Project counts on the
support of our Champions of Privacy to keep our software strong and available
to everyone who needs it. With your help, we can make the Tor network
accessible to all.</p>
- <p>We're standing up for the universal human right to privacy. Join us by
becoming a Champion of Privacy today.</p>
- <div class="text-center">
- <h4><a class="hyperlinks links" href="../monthly-giving">Join with a
monthly gift of $84 per month, or more.</a></h4>
- <h4><a class="hyperlinks links" href="../cryptocurrency">Join with
cryptocurrency.</a></h4>
- </div>
-</div>
+Champions of Privacy make a significant pledge of $1,000 or moreâcreating a
steady, reliable source of funds to help us be agile in our defense against the
growing threats to privacy, freedom of expression, and access to information
online.
+
+As a Champion of Privacy, you'll receive exclusive gifts and invitations to
online events that will give you insider access to what's happening at Tor.
+
+We believe everyone in the world should be able to enjoy the luxury our tools
provide: private access to the open web. The Tor Project counts on the support
of our Champions of Privacy to keep our software strong and available to
everyone who needs it. With your help, we can make the Tor network accessible
to all.
+
+We're standing up for the universal human right to privacy. Join us by
becoming a Champion of Privacy today.
+---
+footer:
+
+#### [Join with a monthly gift of $84 per month, or more.](../monthly-giving
"" class="hyperlinks links" target="_blank" rel="noopener")
+#### [Join with cryptocurrency.](../cryptocurrency "" class="hyperlinks links"
target="_blank" rel="noopener")
---
single_one: 100000
---
diff --git a/models/champions-of-privacy.ini b/models/champions-of-privacy.ini
new file mode 100644
index 00000000..45df20ef
--- /dev/null
+++ b/models/champions-of-privacy.ini
@@ -0,0 +1,13 @@
+[model]
+name = Donate Page
+label = {{ this.title }}
+inherits = donate-form
+
+[fields.intro]
+label = Intro
+type = markdown
+
+[fields.footer]
+label = Footer
+type = markdown
+translate = True
\ No newline at end of file
diff --git a/templates/champions-of-privacy.html
b/templates/champions-of-privacy.html
new file mode 100644
index 00000000..a7b36ad1
--- /dev/null
+++ b/templates/champions-of-privacy.html
@@ -0,0 +1,10 @@
+{% extends "donate-form.html" %}
+{% block donate_form_intro %}
+<div class="mx-auto fixed-width col-7">
+ <br>
+ {{ this.intro }}
+ <div class="text-center">
+ {{ this.footer }}
+ </div>
+</div>
+{% endblock %}
diff --git a/templates/donate-form.html b/templates/donate-form.html
index cfacc90d..67fac7cf 100644
--- a/templates/donate-form.html
+++ b/templates/donate-form.html
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% block content %}
<div>
- {{ this.intro }}
+ {% block donate_form_intro %}{{ this.intro }}{% endblock %}
</div>
<div class="donate-form">
<div id="campaign-totals-area"></div>
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits