diff --git a/templates/base.html b/templates/base.html
index 9dea439..47a6512 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -6,18 +6,28 @@
{% block title %}Live Lista Zakupów{% endblock %}
- {% if not is_blocked %}
+
+ {# --- Style CSS ładowane tylko dla niezablokowanych --- #}
+{% if not is_blocked %}
- {% endif %}
-
- {% if '/admin/receipts' in request.path or '/edit_my_list' in request.path %}
+{% endif %}
+
+{# --- Bootstrap zawsze --- #}
+
+
+{# --- Cropper CSS tylko dla wybranych podstron --- #}
+{% set substrings_cropper = ['/admin/receipts', '/edit_my_list'] %}
+{% if substrings_cropper | select("in", request.path) | list | length > 0 %}
- {% endif %}
- {% if '/edit_my_list' or '/admin/edit_list' in request.path or '/admin/mass_edit_categories' %}
+{% endif %}
+
+{# --- Tom Select CSS tylko dla wybranych podstron --- #}
+{% set substrings_tomselect = ['/edit_my_list', '/admin/edit_list', '/admin/mass_edit_categories'] %}
+{% if substrings_tomselect | select("in", request.path) | list | length > 0 %}
- {% endif %}
+{% endif %}
@@ -103,10 +113,14 @@
});
- {% if '/admin/receipts' in request.path or '/edit_my_list' in request.path %}
+ {% set substrings = ['/admin/receipts', '/edit_my_list'] %}
+ {% if substrings | select("in", request.path) | list | length > 0 %}
{% endif %}
- {% if '/edit_my_list' or '/admin/edit_list' or '/admin/mass_edit_categories' in request.path %}
+
+
+ {% set substrings = ['/edit_my_list', '/admin/edit_list', '/admin/mass_edit_categories'] %}
+ {% if substrings | select("in", request.path) | list | length > 0 %}
{% endif %}