mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Add missing template
This commit is contained in:
parent
efc59f7e07
commit
e7557054df
1 changed files with 24 additions and 0 deletions
24
templates/error.html
Normal file
24
templates/error.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{% extends "layout.html" %}
|
||||
{% import 'utils.html' as utils %}
|
||||
{% block title %}{{code}} {{status_text}} - {{ config.NAME }}{% endblock %}
|
||||
{% block header %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div id="container">
|
||||
{% if not request.path.startswith('/admin') %}
|
||||
{% include "header.html" %}
|
||||
{% endif %}
|
||||
<main>
|
||||
<h1>{{code}} {{status_text}}</h1>
|
||||
<p>Something went wrong :(</p>
|
||||
{% if tb %}
|
||||
<div style="margin:50px 0;">
|
||||
<p>Please consider <a href="https://github.com/tsileo/microblog.pub/issues/new">opening an issue on GitHub</a>.<br>Here is the traceback:</p>
|
||||
<code><pre>
|
||||
{{ tb }}
|
||||
</pre></code>
|
||||
</div>
|
||||
{% endif %}
|
||||
</main>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue