-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
error.hbs
52 lines (42 loc) · 1.76 KB
/
error.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{{!< default}}
{{#contentFor 'htmlLang'}}{{@site.locale}}{{/contentFor}}
{{#contentFor 'styles'}}
<link rel='stylesheet' type='text/css' href='{{asset 'css/error.css'}}' />
{{/contentFor}}
{{#contentFor 'title'}}{{meta_title}}{{/contentFor}}
<section class='mds-page mds-error'>
<div class='mds-container'>
<section class='mds-error-content'>
<h1 class='mds-error-code'>{{statusCode}}</h1>
{{> "images/oups"}}
<p class='mds-error-description'>{{message}}</p>
<p class='mds-error-link'>
<a class='button primary' href='{{@site.url}}'>
Retourner sur la page d'accueil →
</a>
</p>
{{#if errorDetails}}
<section class='mds-error-stack'>
<h4>Erreurs:</h4>
<ul class='mds-error-stack-list'>
{{#foreach errorDetails}}
<li>
<h5
class='mds-error-stack-function'
>{{{rule}}}</h5>
{{#foreach failures}}
<span class='mds-error-stack-file'><strong
>Ref:</strong>
{{ref}}</span><br />
<span class='mds-error-stack-file'><strong
>Message:</strong>
{{message}}</span>
{{/foreach}}
</li>
{{/foreach}}
</ul>
</section>
{{/if}}
</section>
</div>
</section>