PageRenderTime 57ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/donaminos/Ghost
Handlebars | 55 lines | 51 code | 3 blank | 1 comment | 0 complexity | d3f861288052eae5894d223beeee011c 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. </section>
  33. </section>
  34. </section>
  35. {{#if stack}}
  36. <section class="error-stack">
  37. <h3>Stack Trace</h3>
  38. <p><strong>{{message}}</strong></p>
  39. <ul class="error-stack-list">
  40. {{#foreach stack}}
  41. <li>
  42. at
  43. {{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
  44. <span class="error-stack-file">({{at}})</span>
  45. </li>
  46. {{/foreach}}
  47. </ul>
  48. </section>
  49. {{/if}}
  50. </main>
  51. </body>
  52. </html>