add error page templates

This commit is contained in:
MinRK 2013-12-22 17:58:15 -08:00
parent f9dc2f7b7e
commit 84df1a5e26
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{% extends "error.html" %}
{% block error_detail %}
<p>You are requesting a page that does not exist!</p>
{% endblock %}

View File

@ -0,0 +1,31 @@
{% extends "page.html" %}
{% block login_widget %}
{% endblock %}
{% block stylesheet %}
{{super()}}
<style type="text/css">
/* disable initial hide */
div#header, div#site {
display: block;
}
</style>
{% endblock %}
{% block site %}
<div class="error">
{% block h1_error %}
<h1>{{status_code}} : {{status_message}}</h1>
{% endblock h1_error %}
{% block error_detail %}
{% if message %}
<p>The error was:</p>
<div class="traceback-wrapper">
<pre class="traceback">{{message | replace('\n', '<br/>')}}</pre>
</div>
{% endif %}
{% endblock %}
</header>
{% endblock %}