{% for item in items %}
{% if item.type == 'folder' %}
{% if item.contains_xml or show_all_folders %} {% if show_checkbox %} {% endif %} {% else %} {{ item.name }} {% endif %}
{% else %} {{ item.name }} {% endif %}
{% if item.type == 'folder' and item.children.count > 0 %}
{% with items=item.children.list %} {% include 'modal/file_explorer_content.html' %} {% endwith %}
{% endif %}
{% endfor %}