about summary refs log tree commit diff
path: root/bskyweb/templates/error.html
diff options
context:
space:
mode:
Diffstat (limited to 'bskyweb/templates/error.html')
-rw-r--r--bskyweb/templates/error.html24
1 files changed, 18 insertions, 6 deletions
diff --git a/bskyweb/templates/error.html b/bskyweb/templates/error.html
index e40d8c4ab..f8fdd290c 100644
--- a/bskyweb/templates/error.html
+++ b/bskyweb/templates/error.html
@@ -2,14 +2,26 @@
 
 {% block head_title %}Error {{ statusCode }} - Bluesky{% endblock %}
 
-{# don't include the bundle on error pages #}
-{% block head_bundle %}{% endblock %}
+{% block noscript_extra %}
+  {%- if statusCode == 404 %}
+    <h1>404: Not Found</h1>
+  {% endif %}
+{% endblock %}
+
 
-{% block body_all %}
+{# don't include the bundle on non-404 error pages #}
+{% block head_bundle %}
   {% if statusCode == 404 %}
-	  <h1>404: Not Found</h1>
+    {{ super() }}
   {% else %}
-	  <h1>{{ statusCode }}: Server Error</h1>
-    <p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
   {% endif %}
 {% endblock %}
+
+{%- block body_all %}
+  {% if statusCode == 404 %}
+    {{ super() }}
+  {% else %}
+    <h1>{{ statusCode }}: Server Error</h1>
+    <p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
+  {% endif %}
+{% endblock -%}
\ No newline at end of file