{% extends "admin/change_list.html" %} {% load i18n admin_list static admin_urls cms_admin cms_js_tags cms_static cms_tags %} {# TODO might not need that #} {% block title %}{% trans "List of pages" %}{% endblock %} {% block bodyclass %}{{ block.super }} change-list cms-pagetree-wrapper{% endblock %} {% block coltype %}flex{% endblock %} {% block date_hierarchy %}{% endblock %} {% block pagination %}{% endblock %} {% block extrahead %} {{ block.super }} {# INFO: we need to add styles here instead of "extrastyle" to avoid conflicts with adminstyle #} {% endblock extrahead %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block content_title %}{% endblock %} {% block content %} {% spaceless %}

{% trans "Page Tree" %} ({{ tree.site.name }})

{% if tree.is_filtered or request.GET.q %} {# INFO: show reset button when filtering is active #} {% trans "Reset filter"|lower %} {% endif %}
{# INFO: hidden search field with dynamic content #}
{# INFO: dropdown for changing sites and recover deleted pages #}
{# INFO: hidden site form when using the dropdown site switcher #}
{% csrf_token %}
{# INFO: "new page" button #} {% if has_add_permission %} {% blocktrans with opts.verbose_name|title as name %} New Page {% endblocktrans %} {% endif %}
{% csrf_token %}

{% trans "Main Navigation" %}

{% if site_languages|length > 1 %} {% endif %}
{% if has_add_permission %} {% endif %}
{# INFO: javascript is loaded from cms.pagetree.js #} {% if tree.has_items %}
{{ preview_language|upper }}", "key": "{{ preview_language }}" }, { "title": "{{ _('Menu')|escapejs }}", "key": "menu" }, {% block extra_cols %} {% endblock %} { "title": " ", "key": "options" }] }' data-settings-url="{% cms_admin_url "cms_usersettings_session_store" %}">
    {% if tree.is_filtered %} {# INFO: load html data source when filtering #} {% show_admin_menu_for_pages tree.items depth=0 %} {% endif %}
{% include "admin/cms/page/tree/legend.html" %} {% else %} {# INFO: show add a page button when there are no items #}
{{ preview_language|upper }}", "key": "{{ preview_language }}" }, { "title": "{{ _('Menu')|escapejs }}", "key": "menu" }, { "title": " ", "key": "options" }] }' data-settings-url="{% cms_admin_url "cms_usersettings_session_store" %}"> {% url opts|admin_urlname:'add' as add_url %} {% blocktrans with object='page' %} There is no {{ object }} around yet.
Add {{ object }} now. {% endblocktrans %}
{% endif %}
{# INFO: used when copying nodes #}
{% endspaceless %} {% endblock content %}