Mercurial > farol > farol
comparison farol/templates/error.j2 @ 140:3a56d5501ffa
Add HTTP error handling
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 27 Oct 2014 16:46:18 +0100 |
parents | |
children | ce39a5267998 |
comparison
equal
deleted
inserted
replaced
139:584587a000a2 | 140:3a56d5501ffa |
---|---|
1 {% extends "layout.j2" %} | |
2 | |
3 {% block title %}{{ e }}{% endblock %} | |
4 | |
5 {% block content %} | |
6 <div class="page-header"> | |
7 <h1>{{ e }}</h1> | |
8 </div> | |
9 {% if e.description %}<p>{{ e.description }}</p><hr>{% endif %} | |
10 {% if e.code != 404 %} | |
11 <p>Software are not without bugs. Looks like, you found one ... A trace has been written to the logs.</p> | |
12 <p>If you keep coming to this page, you might want to delete your document, and start again with a fresh one ...</p> | |
13 <div class="pull-right">{{ POST_button(url_for('document.delete'), text="Delete document", style="btn-danger") }}</div> | |
14 {% endif %} | |
15 {% endblock %} |