[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-blog] branch master updated: nicer refund UX
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-blog] branch master updated: nicer refund UX |
Date: |
Sat, 31 Aug 2019 11:20:06 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository blog.
The following commit(s) were added to refs/heads/master by this push:
new c231d55 nicer refund UX
c231d55 is described below
commit c231d555c8c41153e193325ae435d64531366982
Author: Florian Dold <address@hidden>
AuthorDate: Sat Aug 31 11:20:03 2019 +0200
nicer refund UX
---
talerblog/blog/blog.py | 8 ++++++++
talerblog/blog/templates/article_frame.html | 6 ++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 2cafd0d..fae9fea 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -183,6 +183,14 @@ except ImportError:
paid_articles_cache = SimpleCache()
+@app.route("/confirm-refund/<order_id>", methods=["GET"])
+def confirm_refund(order_id):
+ return flask.render_template(
+ "templates/confirm_refund.html",
+ article_name=article_name,
+ order_id=order_id)
+
+
##
# Triggers the refund by serving /refund/test?order_id=XY.
# Will be triggered by a "refund button".
diff --git a/talerblog/blog/templates/article_frame.html
b/talerblog/blog/templates/article_frame.html
index 015c9d8..d5bd372 100644
--- a/talerblog/blog/templates/article_frame.html
+++ b/talerblog/blog/templates/article_frame.html
@@ -1,8 +1,6 @@
{% extends "templates/base.html" %}
{% block main %}
{% include "articles/" + article_file %}
- <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="Request refund">
- </form>
+ You don't like this article? <a href="{{ url_for('confirm_refund',
order_id=order_id) }}">Get a refund</a> within
+ the first hour after buying it.
{% endblock main %}
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-blog] branch master updated: nicer refund UX,
gnunet <=