Sith/core/templates/core/500.jinja
2024-08-26 22:34:32 +02:00

27 lines
706 B
Django/Jinja

{% extends "core/base.jinja" %}
{% block head %}
{{ super() }}
<script
src="{{ static('vendored/sentry/bundle.min.js') }}"
crossorigin="anonymous"
></script>
{% endblock head %}
{% block content %}
<h3>{% trans %}500, Server Error{% endtrans %}</h3>
{% if settings.SENTRY_DSN %}
<script>
Sentry.init({ dsn: '{{ settings.SENTRY_DSN }}' });
Sentry.showReportDialog({
eventId: '{{ request.sentry_last_event_id() }}',
{% if user.is_authenticated %}
user: {
'name': '{{user.first_name}} {{user.last_name}}',
'email': '{{user.email}}'
}
{% endif %}
})
</script>
{% endif %}
{% endblock content %}