mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-06 07:30:17 +02:00
c424e25d57
Install @sentry/browser via AssetMapper and initialize the feedback integration on all backoffice pages. The CDN loader script is moved to an overridable block so backoffice pages use the npm SDK without double-initialising Sentry. Sentry is initialised only when a DSN is configured (SENTRY_DSN env var). When a user is logged in their email is pre-filled in the feedback form via Sentry.setUser(); both name and email remain optional so anonymous submissions are supported by simply leaving those fields empty.
23 lines
748 B
Twig
23 lines
748 B
Twig
{% extends 'base.html.twig' %}
|
|
{% block importmap %}{{ importmap('backoffice') }}{% endblock %}
|
|
{% block sentry_loader %}{% endblock %}
|
|
{% block head_extra %}
|
|
<meta name="sentry-dsn" content="{{ sentry_dsn }}">
|
|
<meta name="user-email" content="{{ app.user ? app.user.userIdentifier : '' }}">
|
|
{% endblock %}
|
|
{% block title %}Tijd voor de test | {% endblock %}
|
|
{% block nav %}{{ include('backoffice/nav.html.twig') }}{% endblock %}
|
|
|
|
{% block main %}
|
|
<div class="container">
|
|
<div class="mt-3">
|
|
{% block breadcrumbs %}{% endblock %}
|
|
</div>
|
|
{{ include('flashes.html.twig') }}
|
|
<div class="mb-5">
|
|
{% block body %}
|
|
{% endblock body %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|