-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
error.hbs
executable file
·28 lines (27 loc) · 1.15 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
{{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
<div class="inner-wrap-container">
<div class="inner-wrap">
<div class="error-wrap text-center">
<h1 class="error-code">{{statusCode}}</h1>
<p class="error-message">{{message}}</p>
<a href="{{@site.url}}" class="btn btn-primary back-btn">{{t "Return to home page"}}</a>
</div>
{{#if errorDetails}}
<section class="error-stack">
<h3>{{t "Theme errors"}}</h3>
<ul class="error-stack-list">
{{#foreach errorDetails}}
<li>
<em class="error-stack-function">{{{rule}}}</em>
{{#foreach failures}}
<p><span class="error-stack-file">{{t "Ref:"}} {{ref}}</span></p>
<p><span class="error-stack-file">{{t "Message:"}} {{message}}</span></p>
{{/foreach}}
</li>
{{/foreach}}
</ul>
</section>
{{/if}}
</div>
</div>