From 0c538a1a8f4b6a977a3df5c29d3542d4f8b0105a Mon Sep 17 00:00:00 2001 From: Daniel Grams Date: Tue, 6 Jul 2021 08:46:03 +0200 Subject: [PATCH] Optimize widget layout #203 --- project/templates/layout.html | 10 +++++++--- project/templates/layout_widget.html | 19 +++++++++++++++++++ project/templates/widget/event_date/list.html | 13 +++---------- project/templates/widget/event_date/read.html | 8 +------- .../widget/event_suggestion/create.html | 9 +++------ project/templates/widget/infoscreen/read.html | 6 +++--- 6 files changed, 36 insertions(+), 29 deletions(-) create mode 100644 project/templates/layout_widget.html diff --git a/project/templates/layout.html b/project/templates/layout.html index eb53217..74b718c 100644 --- a/project/templates/layout.html +++ b/project/templates/layout.html @@ -57,6 +57,7 @@ {%- block styles %} {%- endblock styles %} + {%- block gtm_header %} {% set gtm_id = None | env_override('GTM_ID') %} {% if gtm_id %} {% endif %} + {%- endblock gtm_header %} @@ -171,9 +173,11 @@ {% block body -%} - {% if gtm_id %} - - {% endif %} + {%- block gtm_body %} + {% if gtm_id %} + + {% endif %} + {%- endblock gtm_body %} {% block navbar %}