aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/error.html
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/templates/error.html')
-rw-r--r--youtube/templates/error.html26
1 files changed, 20 insertions, 6 deletions
diff --git a/youtube/templates/error.html b/youtube/templates/error.html
index 7256aee..97f8ca9 100644
--- a/youtube/templates/error.html
+++ b/youtube/templates/error.html
@@ -1,22 +1,36 @@
-{% set page_title = 'Error' %}
+{% if error_code %}
+ {% set page_title = 'Error: ' ~ error_code %}
+{% else %}
+ {% set page_title = 'Error' %}
+{% endif %}
{% if not slim %}
{% extends "base.html" %}
{% endif %}
-{% block style %}
- <link href="/youtube.com/static/home.css" rel="stylesheet">
-{% endblock style %}
+{% 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://libregit.org/heckyel/yt-local/issues" target="_blank" rel="noopener noreferrer">https://libregit.org/heckyel/yt-local/issues</a></p>
+ <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 %}
- <div id="error-message">{{ error_message }}</div>
+ <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 %}