mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-22 04:34:17 +00:00
implement 404, 500 error pages #20
This commit is contained in:
parent
0923eb2234
commit
9925d4f57c
14
templates/bundles/TwigBundle/Exception/error404.html.twig
Normal file
14
templates/bundles/TwigBundle/Exception/error404.html.twig
Normal file
@ -0,0 +1,14 @@
|
||||
{% extends theme ~ '/layout.html.twig' %}
|
||||
{% block title %}{{ 'Not found' | trans }} - {{ name }}{% endblock %}
|
||||
{% block main_content %}
|
||||
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
<div class="text-center">
|
||||
<h1 class="display-block margin-b-16-px">
|
||||
404
|
||||
</h1>
|
||||
<div class="text-color-night margin-y-16-px">
|
||||
{{ 'Requested page not found!' | trans }}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
{% endblock %}
|
17
templates/bundles/TwigBundle/Exception/error500.html.twig
Normal file
17
templates/bundles/TwigBundle/Exception/error500.html.twig
Normal file
@ -0,0 +1,17 @@
|
||||
{% extends theme ~ '/layout.html.twig' %}
|
||||
{% block title %}{{ 'Error' | trans }} - {{ name }}{% endblock %}
|
||||
{% block main_content %}
|
||||
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
<div class="text-center">
|
||||
<h1 class="display-block margin-b-16-px">
|
||||
{{ 'Oops!' | trans }}
|
||||
</h1>
|
||||
<div class="text-color-night">
|
||||
{{ 'Internal server error' | trans }}
|
||||
</div>
|
||||
<a class="button button-green margin-y-16-px" href="https://github.com/YGGverse/YGGtracker/issues">
|
||||
{{ 'Report' | trans }}
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user