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 %}
diff --git a/core/templates/core/user_pictures.jinja b/core/templates/core/user_pictures.jinja index b142c681..ae01ef87 100644 --- a/core/templates/core/user_pictures.jinja +++ b/core/templates/core/user_pictures.jinja @@ -10,7 +10,6 @@ window.showSaveFilePicker = showSaveFilePicker; /* Export function to normal javascript */ - {% endblock %} {% block title %} diff --git a/counter/templates/counter/counter_click.jinja b/counter/templates/counter/counter_click.jinja index bcdb9fe2..2c725991 100644 --- a/counter/templates/counter/counter_click.jinja +++ b/counter/templates/counter/counter_click.jinja @@ -7,7 +7,6 @@ {% block additional_js %} - {% endblock %} {% block info_boxes %} diff --git a/eboutic/templates/eboutic/eboutic_main.jinja b/eboutic/templates/eboutic/eboutic_main.jinja index 5652b84b..10bff7cb 100644 --- a/eboutic/templates/eboutic/eboutic_main.jinja +++ b/eboutic/templates/eboutic/eboutic_main.jinja @@ -12,7 +12,6 @@ {# This script contains the code to perform requests to manipulate the user basket without having to reload the page #} - {% endblock %} {% block additional_css %} diff --git a/eboutic/templates/eboutic/eboutic_makecommand.jinja b/eboutic/templates/eboutic/eboutic_makecommand.jinja index 1ee12169..24032be0 100644 --- a/eboutic/templates/eboutic/eboutic_makecommand.jinja +++ b/eboutic/templates/eboutic/eboutic_makecommand.jinja @@ -10,7 +10,6 @@ {% block additional_js %} - {% endblock %} {% block content %} diff --git a/pedagogy/templates/pedagogy/guide.jinja b/pedagogy/templates/pedagogy/guide.jinja index b552de4e..067d1c18 100644 --- a/pedagogy/templates/pedagogy/guide.jinja +++ b/pedagogy/templates/pedagogy/guide.jinja @@ -4,10 +4,6 @@ {% trans %}UV Guide{% endtrans %} {% endblock %} -{% block additional_js %} - -{% endblock %} - {% block additional_css %} diff --git a/sas/templates/sas/picture.jinja b/sas/templates/sas/picture.jinja index 04222704..a2a300af 100644 --- a/sas/templates/sas/picture.jinja +++ b/sas/templates/sas/picture.jinja @@ -4,10 +4,6 @@ {%- endblock -%} -{%- block additional_js -%} - -{%- endblock -%} - {% block head %} {{ super() }}