summaryrefslogtreecommitdiff
path: root/talermerchantdemos/donations/templates/error.html.j2
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-11 16:15:15 +0200
committerChristian Grothoff <christian@grothoff.org>2020-10-11 16:15:15 +0200
commitaa06ddd3cf1de03922fc4e45e46ef3476a69e3f8 (patch)
treec1b72c6ac23d657b0ca0eddf7078813731333cef /talermerchantdemos/donations/templates/error.html.j2
parent449f1d5765ffffcf2c708f4ccf6278e9c79081d0 (diff)
downloadtaler-merchant-demos-aa06ddd3cf1de03922fc4e45e46ef3476a69e3f8.tar.gz
taler-merchant-demos-aa06ddd3cf1de03922fc4e45e46ef3476a69e3f8.tar.bz2
taler-merchant-demos-aa06ddd3cf1de03922fc4e45e46ef3476a69e3f8.zip
add i18n and new menu structure to donations page
Diffstat (limited to 'talermerchantdemos/donations/templates/error.html.j2')
-rw-r--r--talermerchantdemos/donations/templates/error.html.j224
1 files changed, 24 insertions, 0 deletions
diff --git a/talermerchantdemos/donations/templates/error.html.j2 b/talermerchantdemos/donations/templates/error.html.j2
new file mode 100644
index 0000000..ffc2e1f
--- /dev/null
+++ b/talermerchantdemos/donations/templates/error.html.j2
@@ -0,0 +1,24 @@
+{% 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 %}