summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-31 11:27:52 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-31 11:27:52 +0200
commit11fa951b154cbd74457f67cf32ece164a2cd4e92 (patch)
tree73c1c793977acd2640022b36d00278730d5bb817
parent355ecfe601469e9bd0dcc3cc384669c5138fa7d5 (diff)
downloadblog-11fa951b154cbd74457f67cf32ece164a2cd4e92.tar.gz
blog-11fa951b154cbd74457f67cf32ece164a2cd4e92.tar.bz2
blog-11fa951b154cbd74457f67cf32ece164a2cd4e92.zip
ruler / fix variable name
-rw-r--r--talerblog/blog/blog.py2
-rw-r--r--talerblog/blog/templates/article_frame.html4
2 files changed, 5 insertions, 1 deletions
diff --git a/talerblog/blog/blog.py b/talerblog/blog/blog.py
index 46314f7..742705d 100644
--- a/talerblog/blog/blog.py
+++ b/talerblog/blog/blog.py
@@ -184,7 +184,7 @@ def confirm_refund(order_id):
400,
message="can't refund unpaid article",
)
- article_name = resp["contract_terms"]["extra"]["article_name"]
+ article_name = pay_status["contract_terms"]["extra"]["article_name"]
return flask.render_template(
"templates/confirm_refund.html",
article_name=article_name,
diff --git a/talerblog/blog/templates/article_frame.html b/talerblog/blog/templates/article_frame.html
index d5bd372..1efc0d1 100644
--- a/talerblog/blog/templates/article_frame.html
+++ b/talerblog/blog/templates/article_frame.html
@@ -1,6 +1,10 @@
{% extends "templates/base.html" %}
{% block main %}
{% include "articles/" + article_file %}
+
+<hr>
+<p>
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.
+</p>
{% endblock main %}