From 185830035a67be55be18afbf7d4d786fffca7c10 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Wed, 14 Feb 2024 14:22:59 +0100 Subject: [PATCH] fix: Remove `{% spaceless %}` around `{% block "content" %}` (#188) --- .../bootstrap5/accordion.html | 12 ++- .../bootstrap5/accordion_item.html | 4 +- .../djangocms_frontend/bootstrap5/alert.html | 4 +- .../templates/djangocms_frontend/badge.html | 4 +- .../djangocms_frontend/bootstrap5/card.html | 21 +++--- .../bootstrap5/carousel/default/carousel.html | 74 +++++++++---------- .../bootstrap5/carousel/default/image.html | 24 +++--- .../bootstrap5/carousel/default/slide.html | 43 +++++------ .../bootstrap5/collapse-container.html | 9 +-- .../bootstrap5/collapse-trigger.html | 9 +-- .../bootstrap5/collapse.html | 24 +++--- .../bootstrap5/blockquote.html | 42 +++++------ .../djangocms_frontend/bootstrap5/figure.html | 14 ++-- .../bootstrap5/grid_row.html | 4 +- .../djangocms_frontend/bootstrap5/icon.html | 4 +- .../bootstrap5/default/image.html | 29 ++++---- .../jumbotron/default/jumbotron.html | 19 +++-- .../djangocms_frontend/bootstrap5/media.html | 20 +++-- .../bootstrap5/tabs/default/item.html | 19 +++-- .../bootstrap5/tabs/default/tabs.html | 4 +- .../templates/djangocms_frontend.html | 5 +- .../djangocms_frontend/html_container.html | 5 +- 22 files changed, 183 insertions(+), 210 deletions(-) diff --git a/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion.html b/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion.html index 0a9f29c1..cdb8ddd8 100644 --- a/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion.html +++ b/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion.html @@ -1,8 +1,6 @@ {% load cms_tags %} -{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }} id="parent-{{ instance.pk|safe }}"> - {% for plugin in instance.child_plugin_instances %} - {% with parentloop=forloop parent=instance %}{% render_plugin plugin %}{% endwith %} - {% endfor %} - -{% endspaceless %} +<{{ instance.tag_type }}{{ instance.get_attributes }} id="parent-{{ instance.pk|safe }}"> + {% for plugin in instance.child_plugin_instances %} + {% with parentloop=forloop parent=instance %}{% render_plugin plugin %}{% endwith %} + {% endfor %} + diff --git a/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion_item.html b/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion_item.html index 6cd6ae5e..a8bbcaf4 100644 --- a/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion_item.html +++ b/djangocms_frontend/contrib/accordion/templates/djangocms_frontend/bootstrap5/accordion_item.html @@ -11,12 +11,12 @@ aria-controls="item-{{ instance.pk|safe }}">{{ instance.accordion_item_header }} <{{ instance.tag_type }}{{ instance.get_attributes }} id="item-{{ instance.pk|safe }}" aria-labelledby="heading-{{ instance.pk|safe }}" data-bs-parent="#parent-{{ parent.pk|safe }}"> -
+
{% endspaceless %} {% with parent=instance %} {% for plugin in instance.child_plugin_instances %} {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} {% endfor %} - {% endwith %} + {% endwith %}{% spaceless %}
diff --git a/djangocms_frontend/contrib/alert/templates/djangocms_frontend/bootstrap5/alert.html b/djangocms_frontend/contrib/alert/templates/djangocms_frontend/bootstrap5/alert.html index 5f7f1264..1cfc0f18 100644 --- a/djangocms_frontend/contrib/alert/templates/djangocms_frontend/bootstrap5/alert.html +++ b/djangocms_frontend/contrib/alert/templates/djangocms_frontend/bootstrap5/alert.html @@ -3,10 +3,10 @@ {% if instance.alert_dismissible %} {% endif %} -
+
{% endspaceless %} {% for plugin in instance.child_plugin_instances %} {% with parent=instance %}{% render_plugin plugin %}{% endwith %} - {% endfor %} + {% endfor %}{% spaceless %}
{% endspaceless %} diff --git a/djangocms_frontend/contrib/badge/templates/djangocms_frontend/badge.html b/djangocms_frontend/contrib/badge/templates/djangocms_frontend/badge.html index 824c6ce9..3569d791 100644 --- a/djangocms_frontend/contrib/badge/templates/djangocms_frontend/badge.html +++ b/djangocms_frontend/contrib/badge/templates/djangocms_frontend/badge.html @@ -1,3 +1 @@ -{% load cms_tags %}{% spaceless %} - {{ instance.badge_text }} -{% endspaceless %} +{% load cms_tags %}{{ instance.badge_text }} diff --git a/djangocms_frontend/contrib/card/templates/djangocms_frontend/bootstrap5/card.html b/djangocms_frontend/contrib/card/templates/djangocms_frontend/bootstrap5/card.html index e88e2dc7..190b8156 100644 --- a/djangocms_frontend/contrib/card/templates/djangocms_frontend/bootstrap5/card.html +++ b/djangocms_frontend/contrib/card/templates/djangocms_frontend/bootstrap5/card.html @@ -1,11 +1,10 @@ -{% load cms_tags frontend %}{% spaceless %} - {% if instance.parent.plugin_type == "CardLayoutPlugin" and instance.parent.get_plugin_instance.0.card_type == "row" %}
{% endif %} - <{{ instance.tag_type }}{{ instance.get_attributes }}> - {% with parent=instance %} - {% for plugin in instance.child_plugin_instances %} - {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} - {% endfor %} - {% endwith %} - - {% if instance.parent.plugin_type == "CardLayoutPlugin" and instance.parent.get_plugin_instance.0.card_type == "row" %}
{% endif %} -{% endspaceless %} +{% load cms_tags frontend %} +{% if instance.parent.plugin_type == "CardLayoutPlugin" and instance.parent.get_plugin_instance.0.card_type == "row" %}
{% endif %} +<{{ instance.tag_type }}{{ instance.get_attributes }}> +{% with parent=instance %} + {% for plugin in instance.child_plugin_instances %} + {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} + {% endfor %} +{% endwith %} + +{% if instance.parent.plugin_type == "CardLayoutPlugin" and instance.parent.get_plugin_instance.0.card_type == "row" %}
{% endif %} diff --git a/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/carousel.html b/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/carousel.html index abe0e164..12f38157 100644 --- a/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/carousel.html +++ b/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/carousel.html @@ -1,39 +1,39 @@ -{% load i18n cms_tags %}{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }} - id="carousel-{{ instance.pk|safe }}" - data-bs-interval="{{ instance.carousel_interval|lower }}" - data-bs-keyboard="{{ instance.carousel_keyboard|lower }}" - data-bs-pause="{{ instance.carousel_pause|lower }}" - data-bs-ride="{% if instance.carousel_ride %}carousel{% else %}false{% endif %}" - data-bs-wrap="{{ instance.carousel_wrap|lower }}" - > - {% if instance.carousel_indicators %} - - {% endif %} +{% load i18n cms_tags %} +<{{ instance.tag_type }}{{ instance.get_attributes }} +id="carousel-{{ instance.pk|safe }}" +data-bs-interval="{{ instance.carousel_interval|lower }}" +data-bs-keyboard="{{ instance.carousel_keyboard|lower }}" +data-bs-pause="{{ instance.carousel_pause|lower }}" +data-bs-ride="{% if instance.carousel_ride %}carousel{% else %}false{% endif %}" +data-bs-wrap="{{ instance.carousel_wrap|lower }}" +> +{% if instance.carousel_indicators %} + +{% endif %} - {% with width=1024 height=768 %} - - {% endwith %} +{% with width=1024 height=768 %} + +{% endwith %} - {% if instance.carousel_controls %} - - - {% endif %} - {% endspaceless %} +{% if instance.carousel_controls %} + + +{% endif %} + diff --git a/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/image.html b/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/image.html index cd6bdef4..3efd3cd5 100644 --- a/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/image.html +++ b/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/image.html @@ -1,13 +1,13 @@ -{% load cms_tags easy_thumbnails_tags %}{% spaceless %} - {% if instance.rel_image %} - {% thumbnail instance.rel_image options.size crop=options.crop upscale=options.upscale subject_location=instance.rel_image.subject_location as thumbnail %} +{% load cms_tags easy_thumbnails_tags %} +{% if instance.rel_image %} + {% thumbnail instance.rel_image options.size crop=options.crop upscale=options.upscale subject_location=instance.rel_image.subject_location as thumbnail %} - {{ instance.rel_image.default_alt_text|default:'' }} - {% else %} -
- {% for plugin in instance.child_plugin_instances %} - {% render_plugin plugin %} - {% endfor %} -
- {% endif %}{% endspaceless %} + {{ instance.rel_image.default_alt_text|default:'' }} +{% else %} +
+ {% for plugin in instance.child_plugin_instances %} + {% render_plugin plugin %} + {% endfor %} +
+{% endif %} diff --git a/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/slide.html b/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/slide.html index bb13a91c..f632f5b4 100644 --- a/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/slide.html +++ b/djangocms_frontend/contrib/carousel/templates/djangocms_frontend/bootstrap5/carousel/default/slide.html @@ -1,25 +1,22 @@ -{% load cms_tags frontend %}{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }}> - {% if link %} - +{% load cms_tags frontend %} +<{{ instance.tag_type }}{{ instance.get_attributes }}> +{% if link %} + +{% endif %} +{% with image=carousel_image.image %} + {% include "djangocms_frontend/bootstrap5/carousel/default/image.html" %} +{% endwith %} +{% if link %} + +{% endif %} + + diff --git a/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-container.html b/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-container.html index e46f53fb..b0bfcd1b 100644 --- a/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-container.html +++ b/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-container.html @@ -1,13 +1,10 @@ {% load cms_tags frontend %} -{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }} +<{{ instance.tag_type }}{{ instance.get_attributes }} id="{{ instance.container_identifier }}" role="tabpanel" data-bs-parent="#parent-{{ parent.pk|safe }}" - aria-labelledby="trigger-{{ instance.container_identifier }}" - > + aria-labelledby="trigger-{{ instance.container_identifier }}"> {% for plugin in instance.child_plugin_instances %} {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} {% endfor %} - -{% endspaceless %} + diff --git a/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-trigger.html b/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-trigger.html index 907012e7..7e5bb29d 100644 --- a/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-trigger.html +++ b/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse-trigger.html @@ -1,15 +1,12 @@ {% load cms_tags frontend %} -{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }} +<{{ instance.tag_type }}{{ instance.get_attributes }} id="trigger-{{ instance.trigger_identifier }}" role="tab" data-bs-toggle="collapse" data-bs-target="#{{ instance.trigger_identifier }}" aria-controls="{{ instance.trigger_identifier }}" - aria-expanded="false" - > + aria-expanded="false"> {% for plugin in instance.child_plugin_instances %} {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} {% endfor %} - -{% endspaceless %} + diff --git a/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse.html b/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse.html index 3ef29538..ef270c8c 100644 --- a/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse.html +++ b/djangocms_frontend/contrib/collapse/templates/djangocms_frontend/bootstrap5/collapse.html @@ -1,14 +1,12 @@ {% load cms_tags frontend %} -{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }} - id="parent-{{ instance.pk|safe }}" - data-bs-children="{{ instance.collapse_siblings }}" - role="tablist" - > - {% with parent=instance %} - {% for plugin in instance.child_plugin_instances %} - {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} - {% endfor %} - {% endwith %} - -{% endspaceless %} +<{{ instance.tag_type }}{{ instance.get_attributes }} +id="parent-{{ instance.pk|safe }}" +data-bs-children="{{ instance.collapse_siblings }}" +role="tablist" +> +{% with parent=instance %} + {% for plugin in instance.child_plugin_instances %} + {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} + {% endfor %} +{% endwith %} + diff --git a/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/blockquote.html b/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/blockquote.html index f256cef6..64cf1b24 100644 --- a/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/blockquote.html +++ b/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/blockquote.html @@ -1,23 +1,21 @@ {% load cms_tags frontend %} -{% spaceless %} - {# djlint:off #} - {% if instance.quote_origin %} - -
- {% else %} - - {% endif %} - {# djlint:on #} - {% for plugin in instance.child_plugin_instances %} - {% with parentloop=forloop parent=instance %}{% render_plugin plugin %}{% endwith %} - {% empty %}{{ instance.quote_content|html_safe }}{% endfor %} - {# djlint:off #} -
- {# djlint:on #} - {% if instance.quote_origin %} - - - {% endif %} -{% endspaceless %} +{# djlint:off #} +{% if instance.quote_origin %} + +
+{% else %} + +{% endif %} +{# djlint:on #} + {% for plugin in instance.child_plugin_instances %} + {% with parentloop=forloop parent=instance %}{% render_plugin plugin %}{% endwith %} + {% empty %}{{ instance.quote_content|html_safe }}{% endfor %} +{# djlint:off #} +
+{# djlint:on #} +{% if instance.quote_origin %} + + +{% endif %} diff --git a/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/figure.html b/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/figure.html index 44e6e251..b3d90933 100644 --- a/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/figure.html +++ b/djangocms_frontend/contrib/content/templates/djangocms_frontend/bootstrap5/figure.html @@ -1,9 +1,7 @@ {% load i18n cms_tags frontend %} -{% spaceless %} -
- {% for plugin in instance.child_plugin_instances %} - {% with forloop=parentloop parent=instance %}{% render_plugin plugin %}{% endwith %} - {% endfor %} -
{{ instance.figure_caption|safe_caption }}
-
-{% endspaceless %} +
+ {% for plugin in instance.child_plugin_instances %} + {% with forloop=parentloop parent=instance %}{% render_plugin plugin %}{% endwith %} + {% endfor %} +
{{ instance.figure_caption|safe_caption }}
+
diff --git a/djangocms_frontend/contrib/grid/templates/djangocms_frontend/bootstrap5/grid_row.html b/djangocms_frontend/contrib/grid/templates/djangocms_frontend/bootstrap5/grid_row.html index 5d6434f3..9a3c8d46 100644 --- a/djangocms_frontend/contrib/grid/templates/djangocms_frontend/bootstrap5/grid_row.html +++ b/djangocms_frontend/contrib/grid/templates/djangocms_frontend/bootstrap5/grid_row.html @@ -1,8 +1,8 @@ -{% load cms_tags %}{% spaceless %} +{% load cms_tags %} <{{ instance.tag_type }}{{ instance.get_attributes }}> {% for plugin in instance.child_plugin_instances %} {% if plugin.plugin_type == "CardPlugin" %}
{% endif %} {% with forloop as parentloop %}{% render_plugin plugin %}{% endwith %} {% if plugin.plugin_type == "CardPlugin" %}
{% endif %} {% endfor %} - {% endspaceless %} + diff --git a/djangocms_frontend/contrib/icon/templates/djangocms_frontend/bootstrap5/icon.html b/djangocms_frontend/contrib/icon/templates/djangocms_frontend/bootstrap5/icon.html index 77510083..1ed84837 100644 --- a/djangocms_frontend/contrib/icon/templates/djangocms_frontend/bootstrap5/icon.html +++ b/djangocms_frontend/contrib/icon/templates/djangocms_frontend/bootstrap5/icon.html @@ -1,6 +1,6 @@ -{% load cms_tags sekizai_tags icon_tags %}{% add_css_for_icon instance.icon %}{% spaceless %} +{% load cms_tags sekizai_tags icon_tags %}{% add_css_for_icon instance.icon %} <{{ instance.tag_type }}{{ instance.get_attributes }}> {% for plugin in instance.child_plugin_instances %} {% with parentloop=forloop parent=instance %}{% render_plugin plugin %}{% endwith %} {% empty %}{{ instance.simple_content }}{% endfor %}{{ icon_text }} - {% endspaceless %} + diff --git a/djangocms_frontend/contrib/image/templates/djangocms_frontend/bootstrap5/default/image.html b/djangocms_frontend/contrib/image/templates/djangocms_frontend/bootstrap5/default/image.html index cc86554f..4878d3ac 100644 --- a/djangocms_frontend/contrib/image/templates/djangocms_frontend/bootstrap5/default/image.html +++ b/djangocms_frontend/contrib/image/templates/djangocms_frontend/bootstrap5/default/image.html @@ -1,16 +1,15 @@ -{% load thumbnail frontend %}{% spaceless %} - {% if picture_link %} - +{% load thumbnail frontend %} +{% if picture_link %} + +{% endif %} + - {% if picture_link %} - - {% endif %} -{% endspaceless %} + {{ instance.get_attributes }} /> +{% if picture_link %} + +{% endif %} diff --git a/djangocms_frontend/contrib/jumbotron/templates/djangocms_frontend/bootstrap5/jumbotron/default/jumbotron.html b/djangocms_frontend/contrib/jumbotron/templates/djangocms_frontend/bootstrap5/jumbotron/default/jumbotron.html index e34e41e9..a5dbba88 100644 --- a/djangocms_frontend/contrib/jumbotron/templates/djangocms_frontend/bootstrap5/jumbotron/default/jumbotron.html +++ b/djangocms_frontend/contrib/jumbotron/templates/djangocms_frontend/bootstrap5/jumbotron/default/jumbotron.html @@ -1,11 +1,10 @@ -{% load cms_tags frontend %}{% spaceless %} - <{{ instance.tag_type }} {{ instance.get_attributes }}> -
-
- {% for plugin in instance.child_plugin_instances %} - {% with forloop=parentloop %}{% render_plugin plugin %}{% endwith %} - {% endfor %} -
+{% load cms_tags frontend %} +<{{ instance.tag_type }} {{ instance.get_attributes }}> +
+
+ {% for plugin in instance.child_plugin_instances %} + {% with forloop=parentloop %}{% render_plugin plugin %}{% endwith %} + {% endfor %}
- -{% endspaceless %} +
+ diff --git a/djangocms_frontend/contrib/media/templates/djangocms_frontend/bootstrap5/media.html b/djangocms_frontend/contrib/media/templates/djangocms_frontend/bootstrap5/media.html index 0b499c68..c4c05c5c 100644 --- a/djangocms_frontend/contrib/media/templates/djangocms_frontend/bootstrap5/media.html +++ b/djangocms_frontend/contrib/media/templates/djangocms_frontend/bootstrap5/media.html @@ -1,12 +1,10 @@ {% load cms_tags frontend %} -{% spaceless %} - <{{ instance.tag_type }} {{ instance.get_attributes }}> -
- {% for plugin in instance.child_plugin_instances %} - {% if plugin.plugin_type == "MediaBodyPlugin" %} -
- {% endif %} - {% with forloop=parentloop %}{% render_plugin plugin %}{% endwith %} - {% endfor %} - -{% endspaceless %} +<{{ instance.tag_type }} {{ instance.get_attributes }}> +
+ {% for plugin in instance.child_plugin_instances %} + {% if plugin.plugin_type == "MediaBodyPlugin" %} +
+ {% endif %} + {% with forloop=parentloop %}{% render_plugin plugin %}{% endwith %} + {% endfor %} + diff --git a/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/item.html b/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/item.html index ae0bf65a..438b296c 100644 --- a/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/item.html +++ b/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/item.html @@ -1,10 +1,9 @@ -{% load cms_tags %}{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }} - id="tab-{{ instance.pk|safe }}" - aria-labelledby="tab-label-{{ instance.pk|safe }}" - role="tabpanel"> - {% for plugin in instance.child_plugin_instances %} - {% render_plugin plugin %} - {% endfor %} - -{% endspaceless %} +{% load cms_tags %} +<{{ instance.tag_type }}{{ instance.get_attributes }} + id="tab-{{ instance.pk|safe }}" + aria-labelledby="tab-label-{{ instance.pk|safe }}" + role="tabpanel"> + {% for plugin in instance.child_plugin_instances %} + {% render_plugin plugin %} + {% endfor %} + diff --git a/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/tabs.html b/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/tabs.html index 0941cd46..959dfd92 100644 --- a/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/tabs.html +++ b/djangocms_frontend/contrib/tabs/templates/djangocms_frontend/bootstrap5/tabs/default/tabs.html @@ -18,12 +18,12 @@ {% endfor %} -
+
{% endspaceless %} {% for plugin in instance.child_plugin_instances %} {% with parent=instance parentloop=forloop %} {% render_plugin plugin %} {% endwith %} - {% endfor %} + {% endfor %}{% spaceless %}
{% endspaceless %} diff --git a/djangocms_frontend/templates/djangocms_frontend.html b/djangocms_frontend/templates/djangocms_frontend.html index 40b74315..ee093b37 100644 --- a/djangocms_frontend/templates/djangocms_frontend.html +++ b/djangocms_frontend/templates/djangocms_frontend.html @@ -21,8 +21,7 @@ {% block page_head %}{% endblock %} -{% endspaceless %}{% cms_toolbar %}{% spaceless %} - {% block navbar %}{% endblock %} +{% endspaceless %}{% cms_toolbar %}{% block navbar %}{% endblock %} {% block content %}
{% placeholder "Page Content" %} @@ -30,7 +29,7 @@
{% static_placeholder "Footer" %}
- {% endblock content %} + {% endblock content %}{% spaceless %} {% block base_js %}{% endblock %} {% endspaceless %}{% render_block 'js' %}{% spaceless %} {% block end_js %}{% endblock %} diff --git a/djangocms_frontend/templates/djangocms_frontend/html_container.html b/djangocms_frontend/templates/djangocms_frontend/html_container.html index aecbc842..3d53526d 100644 --- a/djangocms_frontend/templates/djangocms_frontend/html_container.html +++ b/djangocms_frontend/templates/djangocms_frontend/html_container.html @@ -1,6 +1,5 @@ -{% load cms_tags %}{% spaceless %} - <{{ instance.tag_type }}{{ instance.get_attributes }}> +{% load cms_tags %}<{{ instance.tag_type }}{{ instance.get_attributes }}> {% for plugin in instance.child_plugin_instances %} {% with parentloop=forloop parent=instance %}{% render_plugin plugin %}{% endwith %} {% empty %}{{ instance.simple_content }}{% endfor %} - {% endspaceless %} +