[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: fix displaying of hint
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: fix displaying of hint |
Date: |
Tue, 20 Oct 2020 13:11:17 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new aa03f2d fix displaying of hint
aa03f2d is described below
commit aa03f2d806c5a01c2419861c7f6e927f9e75c2f8
Author: MS <ms@taler.net>
AuthorDate: Tue Oct 20 13:11:10 2020 +0200
fix displaying of hint
---
talerbank/app/templates/public_accounts.html | 10 +++++-----
talerbank/app/views.py | 3 +++
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/talerbank/app/templates/public_accounts.html
b/talerbank/app/templates/public_accounts.html
index 44d228c..e469896 100644
--- a/talerbank/app/templates/public_accounts.html
+++ b/talerbank/app/templates/public_accounts.html
@@ -27,11 +27,11 @@
<article>
{% if hint != "" %}
<div class="notification">
- {% if not is_success %}
- <p class="informational informational-fail">
- {% else %}
- <p class="informational informational-ok">
- {% endif %}
+ {% if not is_success %}
+ <p class="informational informational-fail">
+ {% else %}
+ <p class="informational informational-ok">
+ {% endif %}
{{ hint }}
</p>
</div>
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index ecb0ec7..5dcd413 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -633,7 +633,10 @@ def serve_public_accounts(request, name=None, page=None):
pages = list(range(1, num_pages + 1))
+ is_success, hint = get_session_hint(request)
context = dict(
+ is_success=is_success,
+ hint=hint,
current_page=page,
back=page - 1 if page > 1 else None,
forth=page + 1 if page < num_pages else None,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.