summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-23 17:52:22 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:28 +0200
commit5f9348cd0509ca9c799542a70adcde4f807830db (patch)
tree36cbe78806ca99e2dc0c6fa258bb1cec06223b3e /ishtar_common/templates
parent94981020c6acfb212e8326bb3f6a0feb362245e8 (diff)
downloadIshtar-5f9348cd0509ca9c799542a70adcde4f807830db.tar.bz2
Ishtar-5f9348cd0509ca9c799542a70adcde4f807830db.zip
Document generation: display an error page for template error
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/500.html2
-rw-r--r--ishtar_common/templates/error.html6
2 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/templates/500.html b/ishtar_common/templates/500.html
index f48c2393d..9815a17f4 100644
--- a/ishtar_common/templates/500.html
+++ b/ishtar_common/templates/500.html
@@ -19,8 +19,10 @@
</header>
<div class="container">
{% block content %}
+ {% block error %}
<h3>{% trans "An error has occured. The support team has been warned." %}</h3>
{% endblock %}
+ {% endblock %}
<p><a href='/'>{% trans "Back to main page" %}</a></p>
</div>
<div id="footer">
diff --git a/ishtar_common/templates/error.html b/ishtar_common/templates/error.html
new file mode 100644
index 000000000..069796184
--- /dev/null
+++ b/ishtar_common/templates/error.html
@@ -0,0 +1,6 @@
+{% extends "500.html" %}
+{% load i18n %}
+{% block error %}
+<h3>{{error_title}}</h3>
+<p>{{error}}</p>
+{% endblock %}