diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-01 14:51:54 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-01 14:58:48 +0200 |
commit | 40e219622a2c416ab36cb39b26a5e1354e4438cc (patch) | |
tree | 878fb4e50ecee04603f8a05dec04f9a4b8662d18 /src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception | |
parent | 114c55c0a6eade2ba6c53fe25f61cc58cca91620 (diff) | |
download | wallabag-40e219622a2c416ab36cb39b26a5e1354e4438cc.tar.gz wallabag-40e219622a2c416ab36cb39b26a5e1354e4438cc.tar.zst wallabag-40e219622a2c416ab36cb39b26a5e1354e4438cc.zip |
Customize errors templates
All error goes to the same template which only display the error message and the status code.
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig new file mode 100644 index 00000000..b52634fd --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig | |||
@@ -0,0 +1,24 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'error.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block body_class %}login{% endblock %} | ||
6 | |||
7 | {% block menu %}{% endblock %} | ||
8 | {% block messages %}{% endblock %} | ||
9 | {% block header %}{% endblock %} | ||
10 | |||
11 | {% block content %} | ||
12 | <main class="valign-wrapper"> | ||
13 | <div class="valign row"> | ||
14 | <div class="card sw"> | ||
15 | <div class="center"><img src="{{ asset('bundles/wallabagcore/themes/_global/img/logo-w.png') }}" alt="wallabag logo" /></div> | ||
16 | <h2>{{ status_code }}: {{ status_text }}</h2> | ||
17 | <p>{{ exception.message }}</p> | ||
18 | </div> | ||
19 | </div> | ||
20 | </main> | ||
21 | {% endblock %} | ||
22 | |||
23 | {% block footer %} | ||
24 | {% endblock %} | ||