{% set exclude_paths = ['/system-auth'] %} {% if (exclude_paths | select("in", request.path) | list | length == 0) and has_authorized_cookie and not is_blocked %} {% endif %} {% set substrings_cropper = ['/admin/receipts', '/edit_my_list'] %} {% if substrings_cropper | select("in", request.path) | list | length > 0 %} {% endif %} {% set substrings_tomselect = ['/edit_my_list', '/admin/edit_list', '/admin/edit_categories'] %} {% if substrings_tomselect | select("in", request.path) | list | length > 0 %} {% endif %}
{% block before_content %}{% endblock %}
{% block content %}{% endblock %}
{% if not is_blocked %} {% if request.endpoint != 'system_auth' %} {% endif %} {% set substrings = ['/admin/receipts', '/edit_my_list'] %} {% if substrings | select("in", request.path) | list | length > 0 %} {% endif %} {% set substrings = ['/edit_my_list', '/admin/edit_list', '/admin/edit_categories'] %} {% if substrings | select("in", request.path) | list | length > 0 %} {% endif %} {% endif %} {% block scripts %}{% endblock %}