Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
18 changes: 8 additions & 10 deletions
18
packages/core/src/templates/TwigBundle/Exception/error.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{% extends view('/base.html.twig') %} | ||
{% set error_page = p('404') %} | ||
|
||
{% block title %}{{ 'error.title'|trans }}{% endblock %} | ||
|
||
{% block body %} | ||
<div class="container mx-auto mt-5"> | ||
<h1>{{ 'error.title'|trans|raw }}</h1> | ||
<p>{{ (status_code is defined ? 'error.serverSay'|trans ~ ' <em>' ~ status_code ~ '</em> <em>' ~ status_text ~ '</em>' : null)|raw }}</p> | ||
<p>{{ 'error.description'|trans|raw }}</p> | ||
</div> | ||
{% endblock %} | ||
{% if error_page is not null %} | ||
{{ render(controller( | ||
'Pushword\\Core\\Controller\\PageController::showPage', {page: error_page} | ||
)) }} | ||
{% else %} | ||
{% include '/error.html.twig'|view %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends view('/base.html.twig') %} | ||
|
||
{% block title %}{{ 'error.title'|trans }}{% endblock %} | ||
|
||
{% block body %} | ||
<div class="container mx-auto mt-5"> | ||
<h1>{{ 'error.title'|trans|raw }}</h1> | ||
<p>{{ (status_code is defined ? 'error.serverSay'|trans ~ ' <em>' ~ status_code ~ '</em> <em>' ~ status_text ~ '</em>' : null)|raw }}</p> | ||
<p>{{ 'error.description'|trans|raw }}</p> | ||
</div> | ||
{% endblock %} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters