error.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% if error_code %}
  2. {% set page_title = 'Error: ' ~ error_code %}
  3. {% else %}
  4. {% set page_title = 'Error' %}
  5. {% endif %}
  6. {% if not slim %}
  7. {% extends "base.html" %}
  8. {% endif %}
  9. {% if traceback %}
  10. {% block style %}
  11. <link href="/youtube.com/static/home.css" rel="stylesheet">
  12. {% endblock style %}
  13. {% endif %}
  14. {% block main %}
  15. {% if traceback %}
  16. <div class="code-error" id="error-box">
  17. <h1>500 Uncaught exception:</h1>
  18. <div class="code-box"><code>{{ traceback }}</code></div>
  19. <p>Please report this issue at <a href="https://todo.sr.ht/~heckyel/yt-local" target="_blank" rel="noopener noreferrer">https://todo.sr.ht/~heckyel/yt-local</a></p>
  20. <p>Remember to include the traceback in your issue and redact any information in it you do not want to share</p>
  21. </div>
  22. {% else %}
  23. <section id="error-message" class="comments-area">
  24. <div class="comments">
  25. <div class="comment-container">
  26. <div class="comment">
  27. <span class="comment-text">{{ error_message }}</span>
  28. </div>
  29. </div>
  30. </div>
  31. </section>
  32. {% endif %}
  33. {% endblock %}