From 35a55ff95a810ed54a91f8d7779ab2c07b4288c9 Mon Sep 17 00:00:00 2001 From: Sli Date: Tue, 8 Sep 2026 14:25:29 +0200 Subject: [PATCH] Fix animation bug on club list Also, due to some weird jinja bug, css block is applied even if supposedly in a conditional statement --- club/templates/club/club_list.jinja | 15 ++++++++++----- core/static/bundled/base-bundle-index.ts | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/club/templates/club/club_list.jinja b/club/templates/club/club_list.jinja index c48e31c4..d370a189 100644 --- a/club/templates/club/club_list.jinja +++ b/club/templates/club/club_list.jinja @@ -15,9 +15,6 @@ {% endblock %} {% else %} {% extends "core/base.jinja" %} - {% block additional_css %} - - {% endblock %} {% block description -%} {% trans %}The list of all clubs existing at UTBM.{% endtrans %} {%- endblock %} @@ -26,6 +23,12 @@ {%- endblock %} {% endif %} +{% block additional_css %} + {% if not is_fragment %} + + {% endif %} +{% endblock %} + {% from "core/macros.jinja" import paginate_htmx %} {% block content %} @@ -33,15 +36,17 @@

{% trans %}Filters{% endtrans %}

{{ form }}
-
diff --git a/core/static/bundled/base-bundle-index.ts b/core/static/bundled/base-bundle-index.ts index 8556a99e..5b56ea45 100644 --- a/core/static/bundled/base-bundle-index.ts +++ b/core/static/bundled/base-bundle-index.ts @@ -62,6 +62,7 @@ document.body.addEventListener( }, ); +htmx.config.transitions = true; Object.assign(window, { htmx }); /**