From c20895197371025bf94d98117e87d254adcf1fbd Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Wed, 30 Oct 2024 13:20:44 +0100 Subject: [PATCH] Add css/js directly to 500 template Going through frontend requires request which is unavailable on error page --- froide/templates/500.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/froide/templates/500.html b/froide/templates/500.html index fa85e0eef..ca07153a1 100644 --- a/froide/templates/500.html +++ b/froide/templates/500.html @@ -1,8 +1,14 @@ {% extends "./error_base.html" %} -{% load i18n %} +{% load i18n static %} +{% block css %} + +{% endblock css %} {% block error %} {% blocktrans %}500 - Server Error{% endblocktrans %} {% endblock error %} {% block error_description %} {% blocktrans with ref=request.sentry.id %}We logged the error and are working on fixing it. If you need to contact us, please use the reference {{ ref }}.{% endblocktrans %} {% endblock error_description %} +{% block scripts %} + +{% endblock scripts %}