Display errors caused in AJAX requests

This commit is contained in:
Raphael Michel
2016-06-27 19:49:45 +02:00
parent d3ffc2b0dc
commit 5cbb967744
9 changed files with 41 additions and 12 deletions

View File

@@ -6,7 +6,7 @@
<h1>{% trans "Bad Request" %}</h1>
<p>{% trans "We were unable to parse your request." %}</p>
<p>{{ exception }}</p>
<p>
<p class="links">
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
&middot; <a href="javascript:location.reload()">{% trans "Try again" %}</a>
</p>

View File

@@ -6,7 +6,7 @@
<h1>{% trans "Permission denied" %}</h1>
<p>{% trans "You do not have access to this page." %}</p>
<p>{{ exception }}</p>
<p>
<p class="links">
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
&middot; <a href="javascript:location.reload()">{% trans "Try again" %}</a>
</p>

View File

@@ -6,7 +6,7 @@
<h1>{% trans "Not found" %}</h1>
<p>{% trans "I'm afraid we could not find the the resource you requested." %}</p>
<p>{{ exception }}</p>
<p>
<p class="links">
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
</p>
{% endblock %}

View File

@@ -7,7 +7,7 @@
<p>{% trans "We had trouble processing your request." %}</p>
<p>{% trans "If this problem persists, please contact us." %}</p>
<p>{{ exception }}</p>
<p>
<p class="links">
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
&middot; <a href="javascript:location.reload()">{% trans "Try again" %}</a>
</p>

View File

@@ -18,7 +18,7 @@
Please go back to the last page, refresh this page and then try again. If the problem persists, please get in touch with us.
{% endblocktrans %}</p>
{% endif %}
<p>
<p class="links">
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
</p>
{% endblock %}