{% load core_tags %} {% url "admin:core_snapshot_changelist" as admin_library_url %} {% for folder in folder_tree %}{% folder_display_name folder.name as display %}
{% if display.0 %}{% else %}{% endif %}{{ display.1 }} {% if folder.has_children %}{% endif %} {% if not folder_readonly or folder.export_urls %}
{% if not folder_readonly %}{% if folder.is_smart and folder.is_container %}{% with parent_id=folder.pk|stringformat:"s" %}{% with menu_id="folder-create-menu-"|add:parent_id button_label="Add folder in "|add:folder.name %}{% include "core/folder_create_menu.html" with menu_id=menu_id button_label=button_label parent_id=parent_id only %}{% endwith %}{% endwith %}{% elif not folder.is_smart %}{% endif %}{% endif %}
{% endif %}
{% empty %}{% if not folder_readonly and not sidebar_query %}

No folders yet.

{% endif %}{% endfor %}