From 4bfcb6a267d6a525b8e6e0502ecc35453d2e0202 Mon Sep 17 00:00:00 2001 From: Sli Date: Mon, 7 Sep 2026 17:36:50 +0200 Subject: [PATCH 1/3] Fix club-list pagination --- club/templates/club/club_list.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/club/templates/club/club_list.jinja b/club/templates/club/club_list.jinja index e9e2cbd4..c48e31c4 100644 --- a/club/templates/club/club_list.jinja +++ b/club/templates/club/club_list.jinja @@ -35,7 +35,7 @@ id="club-list-filters" hx-get="{{ url("club:club_list") }}" hx-target="#content" - hx-swap="outerHtml" + hx-swap="innerHTML" hx-push-url="true" >
From 00cae33a3302c91e9a08e3333b4ebfe1db426dc9 Mon Sep 17 00:00:00 2001 From: Sli Date: Mon, 7 Sep 2026 17:33:29 +0200 Subject: [PATCH 2/3] Fix moderation view --- core/templates/core/file_delete_confirm.jinja | 4 ++-- core/templates/core/file_moderation.jinja | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/templates/core/file_delete_confirm.jinja b/core/templates/core/file_delete_confirm.jinja index 155ac62a..d4cecbc2 100644 --- a/core/templates/core/file_delete_confirm.jinja +++ b/core/templates/core/file_delete_confirm.jinja @@ -31,7 +31,7 @@ {% if is_fragment %} hx-post="{{ action }}" hx-target="#content" - hx-swap="outerHtml" + hx-swap="innerHTML" {% endif %} >{% trans %}Confirm{% endtrans %} @@ -39,7 +39,7 @@ {% if is_fragment %} hx-get="{{ previous }}" hx-target="#content" - hx-swap="outerHtml" + hx-swap="innerHTML" {% else %} action="window.history.back()" {% endif %} diff --git a/core/templates/core/file_moderation.jinja b/core/templates/core/file_moderation.jinja index fb69ede1..431e5116 100644 --- a/core/templates/core/file_moderation.jinja +++ b/core/templates/core/file_moderation.jinja @@ -39,13 +39,13 @@

- {% set current_page = url('core:file_moderation') + "?page=" + page_obj.number | string %}

{% endfor %} From 35a55ff95a810ed54a91f8d7779ab2c07b4288c9 Mon Sep 17 00:00:00 2001 From: Sli Date: Tue, 8 Sep 2026 14:25:29 +0200 Subject: [PATCH 3/3] 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 }); /**