PageRenderTime 54ms CodeModel.GetById 28ms 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. {{#if stack}}
  14. <section class="error-stack">
  15. <h3>Stack Trace</h3>
  16. <p><strong>{{message}}</strong></p>
  17. <ul class="error-stack-list">
  18. {{#foreach stack}}
  19. <li>
  20. at
  21. {{#if function}}<em class="error-stack-function">{{function}}</em>{{/if}}
  22. <span class="error-stack-file">({{at}})</span>
  23. </li>
  24. {{/foreach}}
  25. </ul>
  26. </section>
  27. {{/if}}