deblan.tv/app/Resources/TwigBundle/views/Exception/error.html.twig

39 lines
1.7 KiB
Twig
Raw Normal View History

2015-03-02 21:57:49 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
2015-04-24 17:24:49 +02:00
<title>Blog - {{ status_code }}</title>
2015-03-02 21:57:49 +01:00
{% block stylesheets %}
2015-04-24 17:24:49 +02:00
{% endblock %}
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2015-03-02 21:57:49 +01:00
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
2016-06-19 17:15:56 +02:00
<style type="text/css">
body {
font-size: 30px;
font-family: monospace;
}
</style>
2015-03-02 21:57:49 +01:00
</head>
2015-04-24 17:24:49 +02:00
<body>
2016-06-19 17:15:56 +02:00
<div id="error">
<p>Error {{ status_code }}</p>
2015-04-24 17:24:49 +02:00
</div>
2016-06-19 17:15:56 +02:00
2016-06-19 17:19:41 +02:00
<p>{{ status_text }}</p>
2016-06-19 17:15:56 +02:00
2016-06-19 17:19:41 +02:00
<p><a href="{{ cms_path('home') }}">Go home, you're drunk!</a></p>
2015-03-02 21:57:49 +01:00
2016-06-19 17:15:56 +02:00
<script type="text/javascript">
var errors = {
404: " _____ ___ _____ ___ \n| ___| / | _ | / |\n| |__ _ __ _ __ ___ _ __ / /| | |/' | / /| |\n| __| '__| '__/ _ \\| '__| / /_| | /| |/ /_| |\n| |__| | | | | (_) | | \\___ \\ |_/ /\\___ |\n\\____/_| |_| \\___/|_| |_/\\___/ |_/",
505: " _____ _____ _____ _____ \n| ___| | ___|| _ || _ |\n| |__ _ __ _ __ ___ _ __ |___ \\ | |/' || |/' |\n| __| '__| '__/ _ \\| '__| \\ \\| /| || /| |\n| |__| | | | | (_) | | /\\__/ /\\ |_/ /\\ |_/ /\n\\____/_| |_| \\___/|_| \\____/ \\___/ \\___/"
};
2015-03-02 21:57:49 +01:00
2016-06-19 17:15:56 +02:00
if (errors.hasOwnProperty({{ status_code }})) {
var error = document.getElementById('error');
error.innerHTML = '<pre>' + errors[{{ status_code }}] + '</pre>';
}
</script>
2015-03-02 21:57:49 +01:00
</body>
</html>