PageRenderTime 61ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/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. <title>{{code}} — {{message}}</title>
  8. <meta name="description" content="{{siteDescription}}">
  9. <meta name="author" content="">
  10. <meta name="HandheldFriendly" content="True">
  11. <meta name="MobileOptimized" content="320">
  12. <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
  13. <meta name="apple-mobile-web-app-capable" content="yes" />
  14. <link rel="shortcut icon" href="{{asset "favicon.ico"}}">
  15. <meta http-equiv="cleartype" content="on">
  16. <link rel="stylesheet" type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
  17. <link rel="stylesheet" href="{{asset "css/ghost-ui.min.css" ghost="true"}}">
  18. </head>
  19. <body class="{{bodyClass}}">
  20. <main role="main" id="main">
  21. <section class="error-content error-404 js-error-container">
  22. <section class="error-details">
  23. <figure class="error-image">
  24. <img
  25. class="error-ghost"
  26. src="{{asset "img/404-ghost@2x.png" ghost="true"}}"
  27. srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
  28. </figure>
  29. <section class="error-message">
  30. <h1 class="error-code">{{code}}</h1>
  31. <h2 class="error-description">{{message}}</h2>
  32. <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
  33. </section>
  34. </section>
  35. </section>
  36. {{#if stack}}
  37. <section class="error-stack">
  38. <h3>Stack Trace</h3>
  39. <p><strong>{{message}}</strong></p>
  40. <ul class="error-stack-list">
  41. {{#foreach stack}}
  42. <li>
  43. at
  44. {{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
  45. <span class="error-stack-file">({{at}})</span>
  46. </li>
  47. {{/foreach}}
  48. </ul>
  49. </section>
  50. {{/if}}
  51. </main>
  52. </body>
  53. </html>