From 346a4458429881fad555ba7cb64fe7db9fb23d97 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Tue, 9 Jan 2024 00:36:05 +0100 Subject: [PATCH] fix: Replace deprecated `length_is` by `length` filter (#173) --- djangocms_frontend/frameworks/bootstrap5.py | 20 +++++------ .../templates/bootstrap5/base.html | 33 ++----------------- 2 files changed, 12 insertions(+), 41 deletions(-) diff --git a/djangocms_frontend/frameworks/bootstrap5.py b/djangocms_frontend/frameworks/bootstrap5.py index 1ac78f0e..fa018d52 100644 --- a/djangocms_frontend/frameworks/bootstrap5.py +++ b/djangocms_frontend/frameworks/bootstrap5.py @@ -145,28 +145,28 @@ "grid_sizes": grid_sizes, "grid_icons": grid_icons, "row_links": [ - "https://getbootstrap.com/docs/5.1/layout/grid/#grid-options", - "https://getbootstrap.com/docs/5.1/layout/columns/#reordering", - "https://getbootstrap.com/docs/5.1/layout/columns/#offsetting-columns", - "https://getbootstrap.com/docs/5.1/utilities/flex/#auto-margins", - "https://getbootstrap.com/docs/5.1/utilities/flex/#auto-margins", + "https://getbootstrap.com/docs/5.3/layout/grid/#grid-options", + "https://getbootstrap.com/docs/5.3/layout/columns/#reordering", + "https://getbootstrap.com/docs/5.3/layout/columns/#offsetting-columns", + "https://getbootstrap.com/docs/5.3/utilities/flex/#auto-margins", + "https://getbootstrap.com/docs/5.3/utilities/flex/#auto-margins", ], }, "GridRow": { "grid_sizes": grid_sizes, "grid_icons": grid_icons, "row_links": [ - "https://getbootstrap.com/docs/5.1/layout/grid/#row-columns", + "https://getbootstrap.com/docs/5.3/layout/grid/#row-columns", ], - "vertical_alignment_link": "https://getbootstrap.com/docs/5.1/layout/columns/#vertical-alignment", - "horizontal_alignment_link": "https://getbootstrap.com/docs/5.1/layout/columns/#horizontal-alignment", + "vertical_alignment_link": "https://getbootstrap.com/docs/5.3/layout/columns/#vertical-alignment", + "horizontal_alignment_link": "https://getbootstrap.com/docs/5.3/layout/columns/#horizontal-alignment", }, "CardLayout": { - "card_type_link": "https://getbootstrap.com/docs/5.1/components/card/#card-layout", + "card_type_link": "https://getbootstrap.com/docs/5.3/components/card/#card-layout", "grid_sizes": grid_sizes, "grid_icons": grid_icons, "row_links": [ - "https://getbootstrap.com/docs/5.1/layout/grid/#row-columns", + "https://getbootstrap.com/docs/5.3/layout/grid/#row-columns", ], }, } diff --git a/djangocms_frontend/templates/bootstrap5/base.html b/djangocms_frontend/templates/bootstrap5/base.html index f7e5adf2..a77534c1 100644 --- a/djangocms_frontend/templates/bootstrap5/base.html +++ b/djangocms_frontend/templates/bootstrap5/base.html @@ -1,9 +1,9 @@ {% extends "djangocms_frontend.html" %}{% load cms_tags menu_tags %} {% block base_css %} - + {% endblock %} {% block base_js %} - + {% endblock %} {% block navbar %} {% endblock %} -{% block bottom_css %} {# Quick check for dark mode #} - - {{ block.super }} -{% endblock %}