diff options
author | MS <ms@taler.net> | 2020-10-20 13:11:10 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2020-10-20 13:11:10 +0200 |
commit | aa03f2d806c5a01c2419861c7f6e927f9e75c2f8 (patch) | |
tree | e8469a8536bc2c001045d842673fcd57e637e4cc | |
parent | 5a7118c71663d9bc852bdece9f4165ecc5aff702 (diff) | |
download | bank-aa03f2d806c5a01c2419861c7f6e927f9e75c2f8.tar.gz bank-aa03f2d806c5a01c2419861c7f6e927f9e75c2f8.tar.bz2 bank-aa03f2d806c5a01c2419861c7f6e927f9e75c2f8.zip |
fix displaying of hint
-rw-r--r-- | talerbank/app/templates/public_accounts.html | 10 | ||||
-rw-r--r-- | 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, |