From 01924df8831cc84a859698f8e974aeada547ae8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Wed, 4 Jun 2025 17:19:00 +0200 Subject: [PATCH] Styled error pages --- .../bundles/TwigBundle/Exception/error.html.twig | 13 +++++++++++++ .../TwigBundle/Exception/error404.html.twig | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 templates/bundles/TwigBundle/Exception/error.html.twig create mode 100644 templates/bundles/TwigBundle/Exception/error404.html.twig diff --git a/templates/bundles/TwigBundle/Exception/error.html.twig b/templates/bundles/TwigBundle/Exception/error.html.twig new file mode 100644 index 0000000..d9aa7d9 --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error.html.twig @@ -0,0 +1,13 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Internal Server Error

+

The press has jammed.

+ +

+ Something has gone awry in our publishing engine. The ink has spilled, the type has scattered, + and the content cannot be delivered at this time. +

+ + Return to the homepage +{% endblock %} diff --git a/templates/bundles/TwigBundle/Exception/error404.html.twig b/templates/bundles/TwigBundle/Exception/error404.html.twig new file mode 100644 index 0000000..6491a00 --- /dev/null +++ b/templates/bundles/TwigBundle/Exception/error404.html.twig @@ -0,0 +1,14 @@ +{% extends 'base.html.twig' %} + +{% block body %} +

Page not found

+

Alas, the page you seek is lost to the archives.

+ +

+ Like a missing manuscript or a chapter torn from time, the page you're looking for cannot be found. + It might have been moved, renamed, or never published at all. +

+ + Return to the homepage +{% endblock %} +