From 29bb0f67125a2fef7a13c00b0d79dbf775233f84 Mon Sep 17 00:00:00 2001 From: thomas girod Date: Mon, 5 Aug 2024 17:08:30 +0200 Subject: [PATCH 1/2] promote AlpineJS to global dependency --- core/templates/core/base.jinja | 3 +++ core/templates/core/user_detail.jinja | 4 ---- core/templates/core/user_pictures.jinja | 1 - counter/templates/counter/counter_click.jinja | 1 - eboutic/templates/eboutic/eboutic_main.jinja | 1 - eboutic/templates/eboutic/eboutic_makecommand.jinja | 1 - pedagogy/templates/pedagogy/guide.jinja | 4 ---- sas/templates/sas/picture.jinja | 4 ---- 8 files changed, 3 insertions(+), 16 deletions(-) diff --git a/core/templates/core/base.jinja b/core/templates/core/base.jinja index 30d157ba..22b1ef7d 100644 --- a/core/templates/core/base.jinja +++ b/core/templates/core/base.jinja @@ -27,6 +27,9 @@ {% block additional_css %}{% endblock %} {% block additional_js %}{% endblock %} + + {# Alpine JS must be loaded after scripts that use it. #} + {% endblock %} diff --git a/core/templates/core/user_detail.jinja b/core/templates/core/user_detail.jinja index 9f5824fc..4eff73d3 100644 --- a/core/templates/core/user_detail.jinja +++ b/core/templates/core/user_detail.jinja @@ -9,10 +9,6 @@ {% trans user_name=profile.get_display_name() %}{{ user_name }}'s profile{% endtrans %} {% endblock %} -{% block additional_js %} - -{% endblock %} - {% block content %}