mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-06 23:50:16 +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.
32 lines
797 B
Twig
32 lines
797 B
Twig
<!DOCTYPE html>
|
|
<html lang="nl" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{% block sentry_loader %}
|
|
<script
|
|
src="https://js-de.sentry-cdn.com/30cf438bc708c97e6f45c127bed9af96.min.js"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
{% endblock %}
|
|
<title>
|
|
{% block title %}Tijd voor de test{% endblock title %}
|
|
</title>
|
|
{% block importmap %}{% endblock %}
|
|
{% block head_extra %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
{% block nav %}
|
|
{% endblock nav %}
|
|
<main>
|
|
{% block main %}
|
|
<div class="container">
|
|
{{ include('flashes.html.twig') }}
|
|
{% block body %}
|
|
{% endblock body %}
|
|
</div>
|
|
{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|