From 40e219622a2c416ab36cb39b26a5e1354e4438cc Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sat, 1 Oct 2016 14:51:54 +0200 Subject: Customize errors templates All error goes to the same template which only display the error message and the status code. --- .../themes/material/Exception/error.html.twig | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Exception') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig new file mode 100644 index 00000000..6be78edb --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig @@ -0,0 +1,30 @@ +{% extends "WallabagCoreBundle::layout.html.twig" %} + +{% block title %}{{ 'error.page_title'|trans }}{% endblock %} + +{% block body_class %}login{% endblock %} + +{% block menu %}{% endblock %} +{% block messages %}{% endblock %} + +{% block content %} +
+
+
+
wallabag logo
+
+
+
{{ status_code }}: {{ status_text }}
+

{{ exception.message }}

+ {# {% for trace in exception.trace %} +

{{ trace.class }} - {{ trace.type }} - {{ trace.file }} - {{ trace.line }}

+ {% endfor %} #} +
+
+
+
+
+{% endblock %} + +{% block footer %} +{% endblock %} -- cgit v1.2.3