Skip to content

Commit

Permalink
Add css/js directly to 500 template
Browse files Browse the repository at this point in the history
Going through frontend requires request which is unavailable on error page
  • Loading branch information
stefanw committed Oct 30, 2024
1 parent a0ecf4f commit c208951
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion froide/templates/500.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{% extends "./error_base.html" %}
{% load i18n %}
{% load i18n static %}
{% block css %}
<link rel="stylesheet" href="{% static 'css/main.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 <code>{{ ref }}</code>.{% endblocktrans %}
{% endblock error_description %}
{% block scripts %}
<script rel="stylesheet" href="{% static 'main.js' %}"></script>
{% endblock scripts %}

0 comments on commit c208951

Please sign in to comment.