From 85cc0150fbe0dc558c4d510310cec97e02b81dc8 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Tue, 10 Jul 2018 18:43:41 +0200 Subject: [PATCH] general: move tracking code in separate template (#25193) --- templates/includes/tracking.html | 16 ++++++++++++++++ templates/theme.html | 15 +-------------- 2 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 templates/includes/tracking.html diff --git a/templates/includes/tracking.html b/templates/includes/tracking.html new file mode 100644 index 00000000..35b9a5e8 --- /dev/null +++ b/templates/includes/tracking.html @@ -0,0 +1,16 @@ +{% load static %} + +{% if cnil_compliant_visits_tracking_js %} + + {% elif visits_tracking_js %} + + +{% endif %} diff --git a/templates/theme.html b/templates/theme.html index feddfd34..da9a1b86 100644 --- a/templates/theme.html +++ b/templates/theme.html @@ -138,19 +138,6 @@ {% if environment_label %}{{ environment_label }}{% endif %} Retour en haut de page - {% if cnil_compliant_visits_tracking_js %} - - {% elif visits_tracking_js %} - - - {% endif %} + {% include "includes/tracking.html" %} -- 2.18.0