PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/core/server/views/error.hbs

https://github.com/ritenv/Ghost
Handlebars | 28 lines | 27 code | 0 blank | 1 comment | 0 complexity | 6325ce01a82a02231382d7430ef88a49 MD5 | raw file
  1. {{!< default}}
  2. <section class="error-content error-404 js-error-container">
  3. <section class="error-details">
  4. <figure class="error-image">
  5. <img class="error-ghost" src="{{asset "img/404-ghost@2x.png" ghost="true"}}" srcset="{{asset "img/404-ghost.png" ghost="true"}} 1x, {{asset "img/404-ghost@2x.png" ghost="true"}} 2x"/>
  6. </figure>
  7. <section class="error-message">
  8. <h1 class="error-code">{{code}}</h1>
  9. <h2 class="error-description">{{message}}</h2>
  10. <a class="error-link" href="{{@blog.url}}">Go to the front page →</a>
  11. </section>
  12. </section>
  13. </section>
  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}}