feat: add error pages

This commit is contained in:
Ondrej Vlach 2024-01-18 21:57:13 +01:00
parent 476cc641e5
commit 0efd5343e3
Signed by: ovlach
GPG Key ID: 4FF1A23B4914DE70
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{% extends 'base.html.twig' %}
{% block body %}
<p>
<div class="container">
<div style="text-align: center;">
<h1>{{ "page not found" | trans }}</h1>
<a href="{{ path('homepage') }}">{{ "return to the homepage" | trans }}</a>
</div>
</div>
</p>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends 'base.html.twig' %}
{% block body %}
<p>
<div class="container">
<div style="text-align: center;">
<h1>{{ "internal server error" | trans }}</h1>
{{ "our developers are doing their best to fix it. please try again later." | trans }}
<a href="{{ path('homepage') }}">{{ "return to the homepage" | trans }}</a>
</div>
</div>
</p>
{% endblock %}

View File

@ -9,3 +9,7 @@ Generate qr code: "Vygenerovat QR kód"
Iban: "IBAN" Iban: "IBAN"
QR code generator: "Generátor bankovních QR kódů" QR code generator: "Generátor bankovních QR kódů"
You can generate another QR code here: "Další QR kód si můžete vygenerovat zde" You can generate another QR code here: "Další QR kód si můžete vygenerovat zde"
page not found: 'Stránka nenalezena'
return to the homepage: 'Zpět na homepage'
"our developers are doing their best to fix it. please try again later.": "Naši programátoři dělají maximum aby to opravili. Zkuste to prosím později."
internal server error: 'Něco se pokazilo :-('