mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Modal window is now autocompleted if user is logged in
This commit is contained in:
parent
b97ce81dd2
commit
820bf6279b
@ -13,7 +13,15 @@
|
|||||||
{% if settings.SENTRY_DSN %}
|
{% if settings.SENTRY_DSN %}
|
||||||
<script>
|
<script>
|
||||||
Sentry.init({ dsn: '{{ settings.SENTRY_DSN }}' });
|
Sentry.init({ dsn: '{{ settings.SENTRY_DSN }}' });
|
||||||
Sentry.showReportDialog({ eventId: '{{ request.sentry_last_event_id() }}' })
|
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>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user