From 50681b023bf425786cf3fc5481ba93aa64c6e910 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Sat, 23 Nov 2024 01:55:04 +0100 Subject: [PATCH] [CHANGE] Move the `if` inside the `script` tag Makes the code better readable and maintainable. --- .../theme/templates/theme/theme_imports_js.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/allianceauth/theme/templates/theme/theme_imports_js.html b/allianceauth/theme/templates/theme/theme_imports_js.html index 0821ba98..b3c5fdba 100644 --- a/allianceauth/theme/templates/theme/theme_imports_js.html +++ b/allianceauth/theme/templates/theme/theme_imports_js.html @@ -4,11 +4,13 @@ {% include theme.js_template %} {% else %} {% for x in theme.js %} - {% if x.js_type %} - - {% else %} - - {% endif %} + {% endfor %} {% endif %}