From b08ea6f47fe5c10d088f49159b2c505bc9d444ac Mon Sep 17 00:00:00 2001 From: Vladimir <70273239+vladimir-8@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:28:27 -0700 Subject: [PATCH 1/6] single place to configure crash reporting --- templates/_partials/monitoring.html.twig | 10 ++++++++++ templates/base.html.twig | 12 ++---------- templates/delivery/tracking.html.twig | 8 +------- templates/error.html.twig | 1 + templates/maintenance.html.twig | 1 + 5 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 templates/_partials/monitoring.html.twig diff --git a/templates/_partials/monitoring.html.twig b/templates/_partials/monitoring.html.twig new file mode 100644 index 0000000000..c208361271 --- /dev/null +++ b/templates/_partials/monitoring.html.twig @@ -0,0 +1,10 @@ +{% if app.environment == "prod" %} + + +{% endif %} diff --git a/templates/base.html.twig b/templates/base.html.twig index 0792d994f0..e8f5093c7c 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -85,16 +85,8 @@ {% include "footer.html.twig" %} {% endif %} {% endblock %} - {% if app.environment == "prod" %} - - - {% endif %} + + {% include '_partials/monitoring.html.twig' %}
diff --git a/templates/delivery/tracking.html.twig b/templates/delivery/tracking.html.twig index da8c620d09..89d4528599 100644 --- a/templates/delivery/tracking.html.twig +++ b/templates/delivery/tracking.html.twig @@ -44,13 +44,7 @@ - {% if app.environment == "prod" %} - - - {% endif %} + {% include '_partials/monitoring.html.twig' %} diff --git a/templates/error.html.twig b/templates/error.html.twig index 1dbb9b9dc5..f3247f4610 100644 --- a/templates/error.html.twig +++ b/templates/error.html.twig @@ -14,6 +14,7 @@{{ ('error.' ~ exception.statusCode)|trans }}
{{ 'error.return_to_homepage'|trans }} + {% include '_partials/monitoring.html.twig' %} {% include "_partials/analytics.html.twig" %}