summaryrefslogtreecommitdiff
path: root/talermerchantdemos/blog/templates
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-04-21 21:07:18 +0200
committerFlorian Dold <florian@dold.me>2021-04-21 21:07:18 +0200
commit2b84f3bd5de3a500b63193924bea2f3dfd0c9afd (patch)
tree08d5a2bd354ab7849d731eabe7b132429b6d2225 /talermerchantdemos/blog/templates
parent4356540b2eb12b2c307270566b0b4ce969e12c60 (diff)
downloadtaler-merchant-demos-2b84f3bd5de3a500b63193924bea2f3dfd0c9afd.tar.gz
taler-merchant-demos-2b84f3bd5de3a500b63193924bea2f3dfd0c9afd.tar.bz2
taler-merchant-demos-2b84f3bd5de3a500b63193924bea2f3dfd0c9afd.zip
common base template, new logo and lots of cleanup
Diffstat (limited to 'talermerchantdemos/blog/templates')
-rw-r--r--talermerchantdemos/blog/templates/article_frame.html.j215
-rw-r--r--talermerchantdemos/blog/templates/article_refunded.html.j218
-rw-r--r--talermerchantdemos/blog/templates/base.html.j252
-rw-r--r--talermerchantdemos/blog/templates/confirm_refund.html.j223
-rw-r--r--talermerchantdemos/blog/templates/error.html.j224
l---------talermerchantdemos/blog/templates/footer.html.j21
-rw-r--r--talermerchantdemos/blog/templates/index.html.j236
-rw-r--r--talermerchantdemos/blog/templates/javascript.html31
l---------talermerchantdemos/blog/templates/language-switcher.html.j21
l---------talermerchantdemos/blog/templates/menu.html.j21
10 files changed, 0 insertions, 202 deletions
diff --git a/talermerchantdemos/blog/templates/article_frame.html.j2 b/talermerchantdemos/blog/templates/article_frame.html.j2
deleted file mode 100644
index 2690306..0000000
--- a/talermerchantdemos/blog/templates/article_frame.html.j2
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends "templates/base.html.j2" %}
-{% block main %}
-{% include "articles/" + lang + "/" + article_file %}
-
-{% if refundable %}
-<hr>
-<p class="graybox">
- {{
- gettext("Taler allows merchants to offer refunds to customers.") +
- gettext('You can <a href="{url}">request a refund</a> within the first hour after buying this article.').format(url=url_for('confirm_refund', lang='en', order_id=order_id))
- }}
-</p>
-{% endif %}
-
-{% endblock main %}
diff --git a/talermerchantdemos/blog/templates/article_refunded.html.j2 b/talermerchantdemos/blog/templates/article_refunded.html.j2
deleted file mode 100644
index d4e405c..0000000
--- a/talermerchantdemos/blog/templates/article_refunded.html.j2
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "templates/base.html.j2" %}
-{% block main %}
-
-<h2>{{ gettext("Refunded") }}</h2>
-
-<p>
-{{
- gettext("Your payment (order ID <tt>{order}<tt>) for the article "{article}" has been refunded.").format(order=order_id,article=article_name)
-}}
-</p>
-
-<p>
-{{
- gettext("You will not be able to read the article until you pay for it again.")
-}}
-</p>
-
-{% endblock main %}
diff --git a/talermerchantdemos/blog/templates/base.html.j2 b/talermerchantdemos/blog/templates/base.html.j2
deleted file mode 100644
index c4935f1..0000000
--- a/talermerchantdemos/blog/templates/base.html.j2
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<!--
- This file is part of GNU TALER.
- Copyright (C) 2014, 2015, 2016, 2020 Taler Systems SA
-
- TALER is free software; you can redistribute it and/or modify it under the
- terms of the GNU Lesser General Public License as published by the Free Software
- Foundation; either version 2.1, or (at your option) any later version.
-
- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License along with
- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
--->
-
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- {% block meta %}{% endblock %}
- <title>{{ gettext("GNU Taler Demo: Essay Shop") }}</title>
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='pure.css') }}" />
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='demo.css') }}" />
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar.css') }}" />
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='torsten.css') }}" />
- {% block styles %}{% endblock %}
- {% block scripts %}{% endblock %}
-</head>
-
-<body>
- <header class="demobar" style="display: flex; flex-direction: column;">
- <h1><span class="tt adorn-brackets">{{ gettext("Taler Demo")}}</span><br/>
- <span class="it"><a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG') }}">{{ gettext("Essay shop") }}</a></span></h1>
- <p>{{
- gettext("On this page you can buy articles using an imaginary currency.") + "<br>" +
- gettext("The articles are chapters from Richard Stallman's book &quot;Free Software, Free Society&quot;.") + "<br>" +
- gettext('The book is <a href="{shop}">published by the FSF</a> and available gratis at <a href="{gnu}">gnu.org</a>.').format(shop="https://shop.fsf.org/product/free-software-free-society-2", gnu="https://www.gnu.org")
- }}
- </p>
- </header>
- {% from 'templates/menu.html.j2' import menu with context %} {{ menu('blog') }}
-
- <section id="main" class="content">
- {% block main %}
- This is the main content of the page.
- {% endblock %}
- {% include 'templates/footer.html.j2' %}
- </section>
-</body>
-</html>
diff --git a/talermerchantdemos/blog/templates/confirm_refund.html.j2 b/talermerchantdemos/blog/templates/confirm_refund.html.j2
deleted file mode 100644
index a356ea1..0000000
--- a/talermerchantdemos/blog/templates/confirm_refund.html.j2
+++ /dev/null
@@ -1,23 +0,0 @@
-{% extends "templates/base.html.j2" %}
-{% block main %}
- <h1>{{ gettext("Confirm refund request for article") }}</h1>
-
- <p>
- {{
- gettext("Do you want to get a refund for the article <em>{name}</em>?").format(name=article_name) + "<br/>" +
- gettext("In this demonstration, refunds will be automatically approved by the merchant.") + "<br/>" +
- gettext("After you have obtained a refund, you will not be able to read the article anymore.")
- }}
- </p>
-
- <p>
- {{
- gettext ("You will only be able to receive the refund on the same wallet that you have used to pay for this article originally.")
- }}
- </p>
-
- <form action="{{ url_for('refund', order_id=order_id) }}" method="POST">
- <input type="text" name="article_name" value={{ article_name}} hidden>
- <input type="submit" value="{{gettext("Request refund")}}">
- </form>
-{% endblock main %}
diff --git a/talermerchantdemos/blog/templates/error.html.j2 b/talermerchantdemos/blog/templates/error.html.j2
deleted file mode 100644
index ffc2e1f..0000000
--- a/talermerchantdemos/blog/templates/error.html.j2
+++ /dev/null
@@ -1,24 +0,0 @@
-{% extends "templates/base.html.j2" %}
-{% block main %}
- <h1>{{ gettext("Error encountered") }}</h1>
-
- <p>{{ message }}</p>
-
- {% if status_code %}
- <p>
- {{ gettext ("The backend returned status code {code}.").format(code=status_code) }}.
- </p>
- {% endif %}
-
- {% if json %}
- <p>{{gettext("Backend response:")}}</p>
- <pre>{{ json }}</pre>
- {% endif %}
-
- {% if stack %}
- <p>{{gettext("Stack trace:")}}</p>
- <pre>
- {{ stack }}
- </pre>
- {% endif %}
-{% endblock main %}
diff --git a/talermerchantdemos/blog/templates/footer.html.j2 b/talermerchantdemos/blog/templates/footer.html.j2
deleted file mode 120000
index 028b093..0000000
--- a/talermerchantdemos/blog/templates/footer.html.j2
+++ /dev/null
@@ -1 +0,0 @@
-../../templates/footer.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/blog/templates/index.html.j2 b/talermerchantdemos/blog/templates/index.html.j2
deleted file mode 100644
index f231e6f..0000000
--- a/talermerchantdemos/blog/templates/index.html.j2
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends "templates/base.html.j2" %}
-{% block main %}
- <h2>{{ gettext("Essay Shop: Free Software, Free Society") }} </h2>
- <div style="font-size: smaller;">
- <p>{{ gettext("This is the latest edition of <cite>Free Software, Free Society: Selected Essays of Richard M. Stallman.</cite>") }} <br>
- Free Software Foundation<br>
- 51 Franklin Street, Fifth Floor<br>
- Boston, MA 02110-1335
- <br>
- Copyright &copy; 2002, 2010 Free Software Foundation, Inc.
- </p>
-
- <p>{{ gettext("Verbatim copying and distribution of this entire book are permitted worldwide, without royalty, in any medium, provided this notice is preserved. Permission is granted to copy and distribute translations of this book from the original English into another language provided the translation has been approved by the Free Software Foundation and the copyright notice and this permission notice are preserved on all copies.") }}
- </p>
- <p>ISBN 978-0-9831592-0-9</p>
- </div>
-
- <h2>{{ gettext("Chapters") }} </h2>
- <div>
- {{
- gettext("Click on an individual chapter to to purchase it with GNU Taler.") +
- gettext('You can get free, virtual money to buy articles on this page at the <a href="{}")">bank</a>').format(env('TALER_ENV_URL_BANK'))
- }}
- </div>
-
- <div>
- {% for article in articles %}
- <div class="notice">
- <h3><a href="{{ url_for('article', lang=article.lang, article_name=article.slug) }}" class="articleTitle">{{article.title}}</a></h3>
- <p>{{ article.teaser|safe }} <a href="{{ url_for('article', lang=article.lang, article_name=article.slug) }}">({{ gettext('Pay to read more...') }})</a></p>
- </div>
- {% else %}
- <em>({{ gettext("No articles available in this language.") }})</em>
- {% endfor %}
- </div>
-{% endblock main %}
diff --git a/talermerchantdemos/blog/templates/javascript.html b/talermerchantdemos/blog/templates/javascript.html
deleted file mode 100644
index 436c186..0000000
--- a/talermerchantdemos/blog/templates/javascript.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!-- This file is in the public domain -->
-
-<html>
- <head>
- <title>JavaScript disclaimer.</title>
- </head>
- <body>
- <h3>This site does not use JavaScript.</h3>
- </body>
-</html>
-
-<!-- The following lines are kept as a template for future inclusion of JavaScript files. -->
-
-<!--
- <html>
- <body>
- <table id="jslicense-labels1">
- <tr>
- <td><a href="/static/path/to/example0.js">example0.js</a></td>
- <td><a href="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL</a></td>
- <td><a href="/static/path/to/example0.js.tar.gz">example0.js.tar.gz</a></td>
- </tr>
- <tr>
- <td><a href="/static/path/to/example1.js">example1.js</a></td>
- <td><a href="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL</a></td>
- <td><a href="/static/path/to/example1.js.tar.gz">example1.js.tar.gz</a></td>
- </tr>
- </table>
- </body>
- </html>
--->
diff --git a/talermerchantdemos/blog/templates/language-switcher.html.j2 b/talermerchantdemos/blog/templates/language-switcher.html.j2
deleted file mode 120000
index 6423c5c..0000000
--- a/talermerchantdemos/blog/templates/language-switcher.html.j2
+++ /dev/null
@@ -1 +0,0 @@
-../../templates/language-switcher.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/blog/templates/menu.html.j2 b/talermerchantdemos/blog/templates/menu.html.j2
deleted file mode 120000
index b9575ea..0000000
--- a/talermerchantdemos/blog/templates/menu.html.j2
+++ /dev/null
@@ -1 +0,0 @@
-../../templates/menu.html.j2 \ No newline at end of file