[tor-commits] [newsletter/master] Added page for subscription confirmation errors

hiro at torproject.org hiro at torproject.org
Wed Oct 14 15:36:55 UTC 2020


commit 37acf0ce3334bb5c9d050565cb67d70f8d7da0b8
Author: Peter Haight <peterh at giantrabbit.com>
Date:   Tue Sep 22 15:52:24 2020 -0700

    Added page for subscription confirmation errors
    
    Once we finish all of the Lektor work for the donate site, we don't want
    to have any display pages on the donate site any more, so the error
    pages need to be moved here.
    
    Issue #48283
---
 content/subscription-error/contents.lr |  7 +++++++
 lego                                   |  2 +-
 templates/errors.html                  | 28 ++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/content/subscription-error/contents.lr b/content/subscription-error/contents.lr
new file mode 100644
index 0000000..ac648bb
--- /dev/null
+++ b/content/subscription-error/contents.lr
@@ -0,0 +1,7 @@
+_model: page
+---
+title: Error Confirming Your Subscription
+---
+html: errors.html
+---
+_template: errors.html
diff --git a/lego b/lego
index 925c4c1..de11708 160000
--- a/lego
+++ b/lego
@@ -1 +1 @@
-Subproject commit 925c4c1761ca69c4367f79b15ed9a2bc19a19a33
+Subproject commit de117085d3e2f48f1f5878b5f1d6951a07662d5c
diff --git a/templates/errors.html b/templates/errors.html
new file mode 100644
index 0000000..ebc1a5b
--- /dev/null
+++ b/templates/errors.html
@@ -0,0 +1,28 @@
+{% from "macros/archive.html" import render_intro_post %}
+<!doctype html>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<link rel="stylesheet" href="{{ '/static/css/bootstrap.css'|asseturl }}">
+<link rel="stylesheet" href="{{ '/static/fonts/fontawesome/css/all.min.css'|asseturl }}" rel="stylesheet">
+<title>{% block title %}{{ this.title }}{% endblock %}</title>
+<body class="no-gutters" data-spy="scroll" data-target="#sidenav-topics" id="topics" data-children=".item">
+  <header>
+    {% include 'navbar.html' %}
+  </header>
+  <div class="page bg-light">
+    <div class="container-fluid">
+      <div class="row flex-xl-nowrap">
+        <main role="main" class="col-sm-12 col-xs-12 ml-sm-auto col-md-9 col-lg-9 mx-auto m-5">
+          <h2>{{ this.title }}</h2>
+          <div class="errors">
+          </div>
+          {% block body %}{% endblock %}
+          <script src="{{ '/static/js/errors.js'|asseturl }}" ></script>
+        </main>
+      </div>
+    </div>
+  </div>
+  <footer class="footer">
+    {% include 'footer.html' %}
+  </footer>
+</body>





More information about the tor-commits mailing list