New error page
This commit is contained in:
parent
a359977a33
commit
a1b51e0a77
|
@ -3,109 +3,36 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>Blog - {{ status_code }}</title>
|
<title>Blog - {{ status_code }}</title>
|
||||||
{% block metas %}
|
|
||||||
<meta name="keywords" content="{{ page.metaKeywords|pp(page.object)|pp(page)|e }}">
|
|
||||||
<meta name="description" content="{% block meta_description %}{{ page.metaDescription|pp(page)|pp(page.object)|e }}{% endblock %}">
|
|
||||||
{% endblock %}
|
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
<link rel="stylesheet" href="{{ asset('/bundles/deblanblog/bootstrap/css/bootstrap.min.css') }}" />
|
|
||||||
<link rel="stylesheet" href="{{ asset('/bundles/deblanblog/bootstrap/css/bootstrap-theme.css') }}" />
|
|
||||||
<link rel="stylesheet" href="{{ asset('/bundles/deblanblog/syntaxhighlighter/styles/shCoreEclipse.css') }}" />
|
|
||||||
<link rel="stylesheet" href="{{ asset('/bundles/deblanblog/syntaxhighlighter/styles/shThemeEclipse.css') }}" />
|
|
||||||
<link rel="stylesheet" href="{{ asset('/bundles/deblanblog/css/main.css') }}" />
|
|
||||||
<style type="text/css">
|
|
||||||
#content section {
|
|
||||||
padding: 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
section {
|
|
||||||
background: url('http://www.francestickers.com/1331-2601-thickbox/space-invader-.jpg') center center no-repeat;
|
|
||||||
height: 700px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
|
||||||
#social {
|
|
||||||
position: static;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
section {
|
|
||||||
background: none;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
|
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
|
||||||
|
<style type="text/css">
|
||||||
|
body {
|
||||||
|
font-size: 30px;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="wrap">
|
<div id="error">
|
||||||
<div id="main">
|
<p>Error {{ status_code }}</p>
|
||||||
<div id="breadcrumb">
|
|
||||||
<div class="ctn">
|
|
||||||
<ul id="social">
|
|
||||||
<li class="social social-rss"><a target="_blank" href="{{ path('rss') }}">RSS</a></li>
|
|
||||||
<li class="social social-linkedin"><a target="_blank" href="https://www.linkedin.com/profile/view?id=68981845&trk=tab_pro">LinkedIn</a></li>
|
|
||||||
<li class="social social-facebook"><a target="_blank" href="https://www.facebook.com/simon.vieille">Facebook</a></li>
|
|
||||||
<li class="social social-twitter"><a target="_blank" href="https://twitter.com/SimonVieille">Twitter</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><span class="glyphicon glyphicon-home"></span></li>
|
|
||||||
<li><a href="{{ path('homepage') }}">Accueil</a></li>
|
|
||||||
<li class="sep"> » </li>
|
|
||||||
<li>{{ status_code }}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="content" class="ctn">
|
|
||||||
<div class="trow">
|
|
||||||
<section>
|
|
||||||
<p><strong>{{ status_text|trans }}</strong></p>
|
|
||||||
|
|
||||||
<form action="{{ path('search') }}" class="text-center form-inline">
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="query" value="" class="form-control" />
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input class="btn btn-primary" type="submit" value="Rechercher" />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<footer id="bottom">
|
|
||||||
<div class="ctn">
|
|
||||||
<div id="footer">
|
|
||||||
<p>
|
|
||||||
Simon Vieille / Hébergement personnel / Textes libres sauf indication(s) contraire(s) /
|
|
||||||
<a href="{{ path('private_life') }}">Vie privée</a>
|
|
||||||
</p>
|
|
||||||
<p><button class="btn btn-default btn-xs"><img width="128" height="13" src="{{ asset('/bundles/deblanblog/img/logo_trinity.png') }}" alt="Trinity CMS" title="Trinity CMS" /></button></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<div id="cookie" class="alert alert-info hide">
|
|
||||||
<a class="close" data-dismiss="alert" href="#" aria-hidden="true">×</a>
|
|
||||||
<p>Ce site utilise des cookies. <strong><a href="{{ path('private_life') }}">Gérer mes paramètres de confidentalité</a></strong>.</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% block javascripts %}
|
<pre>{{ status_text }}</pre>
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
|
||||||
<script type="text/javascript" src="{{ asset('/bundles/deblanblog/bootstrap/js/bootstrap.min.js') }}"></script>
|
<pre><a href="{{ cms_path('home') }}">Go home, you're drunk!</a></pre>
|
||||||
<script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f1bf1591e040670"></script>
|
|
||||||
<script type="text/javascript" src="{{ asset('/bundles/deblanblog/syntaxhighlighter/scripts/shCore.js') }}"></script>
|
<script type="text/javascript">
|
||||||
<script type="text/javascript" src="{{ asset('/bundles/deblanblog/syntaxhighlighter/scripts/shAutoloader.js') }}"></script>
|
var errors = {
|
||||||
<script type="text/javascript" src="{{ asset('/bundles/deblanblog/js/main.js') }}"></script>
|
404: " _____ ___ _____ ___ \n| ___| / | _ | / |\n| |__ _ __ _ __ ___ _ __ / /| | |/' | / /| |\n| __| '__| '__/ _ \\| '__| / /_| | /| |/ /_| |\n| |__| | | | | (_) | | \\___ \\ |_/ /\\___ |\n\\____/_| |_| \\___/|_| |_/\\___/ |_/",
|
||||||
<noscript><p><img src="https://piwik.deblan.org/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
|
505: " _____ _____ _____ _____ \n| ___| | ___|| _ || _ |\n| |__ _ __ _ __ ___ _ __ |___ \\ | |/' || |/' |\n| __| '__| '__/ _ \\| '__| \\ \\| /| || /| |\n| |__| | | | | (_) | | /\\__/ /\\ |_/ /\\ |_/ /\n\\____/_| |_| \\___/|_| \\____/ \\___/ \\___/"
|
||||||
{% endblock %}
|
};
|
||||||
|
|
||||||
|
if (errors.hasOwnProperty({{ status_code }})) {
|
||||||
|
var error = document.getElementById('error');
|
||||||
|
error.innerHTML = '<pre>' + errors[{{ status_code }}] + '</pre>';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue