diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-09-19 15:33:11 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-09-19 15:33:11 +0530 |
commit | a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd (patch) | |
tree | 5b8f407dbb7e9d1ab2106ac0cc8564897e7a2098 /youtube/templates/error.html | |
download | yt-local-a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd.tar.gz yt-local-a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd.tar.bz2 yt-local-a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd.zip |
Diffstat (limited to 'youtube/templates/error.html')
-rw-r--r-- | youtube/templates/error.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/youtube/templates/error.html b/youtube/templates/error.html new file mode 100644 index 0000000..97f8ca9 --- /dev/null +++ b/youtube/templates/error.html @@ -0,0 +1,36 @@ +{% if error_code %} + {% set page_title = 'Error: ' ~ error_code %} +{% else %} + {% set page_title = 'Error' %} +{% endif %} + +{% if not slim %} + {% extends "base.html" %} +{% endif %} + +{% if traceback %} + {% block style %} + <link href="/youtube.com/static/home.css" rel="stylesheet"> + {% endblock style %} +{% endif %} + +{% block main %} + {% if traceback %} + <div class="code-error" id="error-box"> + <h1>500 Uncaught exception:</h1> + <div class="code-box"><code>{{ traceback }}</code></div> + <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> + <p>Remember to include the traceback in your issue and redact any information in it you do not want to share</p> + </div> + {% else %} + <section id="error-message" class="comments-area"> + <div class="comments"> + <div class="comment-container"> + <div class="comment"> + <span class="comment-text">{{ error_message }}</span> + </div> + </div> + </div> + </section> + {% endif %} +{% endblock %} |