PageRenderTime 72ms CodeModel.GetById 67ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/core/client/templates/error.hbs

https://github.com/kevinansfield/Ghost
Handlebars | 28 lines | 27 code | 1 blank | 0 comment | 0 complexity | d472ffe7a8c1c7810ad416ce1eb2f210 MD5 | raw file
 1<section class="error-content error-404 js-error-container">
 2    <section class="error-details">
 3         <figure class="error-image">
 4             <img class="error-ghost" {{bind-attr src=ghostPaths.errorImageSrc srcset=ghostPaths.errorImageSrcSet}} />
 5         </figure>
 6         <section class="error-message">
 7             <h1 class="error-code">{{code}}</h1>
 8             <h2 class="error-description">{{message}}</h2>
 9             <a class="error-link" {{bind-attr href=ghostPaths.blogRoot}}>Go to the front page →</a>
10         </section>
11    </section>
12</section>
13
14{{#if stack}}
15    <section class="error-stack">
16        <h3>Stack Trace</h3>
17        <p><strong>{{message}}</strong></p>
18        <ul class="error-stack-list">
19            {{#foreach stack}}
20                <li>
21                    at
22                    {{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
23                    <span class="error-stack-file">({{at}})</span>
24                </li>
25            {{/foreach}}
26        </ul>
27    </section>
28{{/if}}