Browse Source

implement 404, 500 error pages #20

main
ghost 1 year ago
parent
commit
9925d4f57c
  1. 14
      templates/bundles/TwigBundle/Exception/error404.html.twig
  2. 17
      templates/bundles/TwigBundle/Exception/error500.html.twig

14
templates/bundles/TwigBundle/Exception/error404.html.twig

@ -0,0 +1,14 @@ @@ -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

@ -0,0 +1,17 @@ @@ -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…
Cancel
Save