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