rainbox.email/views/errors/error.njk

36 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-04-23 18:07:49 +02:00
{% extends '../layouts/barebone.njk' %}
{% set title = error_code + ' - ' + error_message %}
{% block _stylesheets %}
<link rel="stylesheet" href="/css/error.css">
{% endblock %}
{% block _body %}
2020-06-27 17:20:06 +02:00
<div class="logo"><a href="/">{{ app.name }}</a></div>
2020-04-23 18:07:49 +02:00
<main class="{% block class %}{% endblock %}">
{% if flash %}
{{ macros.messages(flash) }}
{% endif %}
<div class="error-code">{{ error_code }}</div>
<div class="error-message">{{ error_message }}</div>
<div class="error-instructions">{{ error_instructions|safe }}</div>
<nav>
{% if session.previousUrl and session.previousUrl != '/' and session.previousUrl != url %}
<a href="{{ session.previousUrl }}" class="button"><i data-feather="arrow-left"></i> Go back</a>
{% endif %}
<a href="/" class="button"><i data-feather="home"></i> Go to homepage</a>
</nav>
</main>
<div class="contact">
Error ID: {{ error_id }}
<br>
If you think this isn't right, please contact us with the above error ID at
2020-06-27 17:20:06 +02:00
<a href="mailto:{{ app.contact_email }}">{{ app.contact_email }}</a>.
2020-04-23 18:07:49 +02:00
</div>
{% endblock %}