PageRenderTime 17ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/core/server/views/user-error.hbs

https://github.com/ritenv/Ghost
Handlebars | 56 lines | 52 code | 3 blank | 1 comment | 0 complexity | 345c1e906c44fad48f8eacf464560d88 MD5 | raw file
 1<!doctype html>
 2<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
 3<!--[if (gte IE 9)| IEMobile |!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
 4  <head>
 5    <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
 6    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
 7
 8    <title>{{code}} — {{message}}</title>
 9    <meta name="description" content="{{siteDescription}}">
10    <meta name="author" content="">
11    <meta name="HandheldFriendly" content="True">
12    <meta name="MobileOptimized" content="320">
13    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
14    <meta name="apple-mobile-web-app-capable" content="yes" />
15
16    <link rel="shortcut icon" href="{{asset "favicon.ico"}}">
17    <meta http-equiv="cleartype" content="on">
18
19    <link rel="stylesheet" type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
20    <link rel="stylesheet" href="{{asset "css/ghost-ui.min.css" ghost="true"}}">
21  </head>
22  <body class="{{bodyClass}}">
23    <main role="main" id="main">
24      <section class="error-content error-404 js-error-container">
25        <section class="error-details">
26          <figure class="error-image">
27            <img
28              class="error-ghost"
29              src="{{asset "img/404-ghost@2x.png" ghost="true"}}"
30              srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
31          </figure>
32          <section class="error-message">
33            <h1 class="error-code">{{code}}</h1>
34            <h2 class="error-description">{{message}}</h2>
35            <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
36          </section>
37        </section>
38      </section>
39      {{#if stack}}
40        <section class="error-stack">
41          <h3>Stack Trace</h3>
42          <p><strong>{{message}}</strong></p>
43          <ul class="error-stack-list">
44            {{#foreach stack}}
45              <li>
46                at
47                {{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
48                <span class="error-stack-file">({{at}})</span>
49              </li>
50            {{/foreach}}
51          </ul>
52        </section>
53      {{/if}}
54    </main>
55  </body>
56</html>