mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-14 18:23:27 +00:00
28 lines
800 B
Django/Jinja
28 lines
800 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% block head %}
|
|
{{ super() }}
|
|
<script
|
|
src="https://browser.sentry-cdn.com/7.11.1/bundle.min.js"
|
|
integrity="sha384-qcYSo5+/E8hEkPmHFa79GRDsGT84SRhBJHRw3+dbQyh0UwueiFP1jCsRBClEREcs"
|
|
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 %}
|