{% extends "admin/change_list.html" %} {% load i18n admin_list admin_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 %}change-list{% endblock %} {% block coltype %}flex{% endblock %} {% block date_hierarchy %}{% date_hierarchy cl %}{% 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 object-tools %} {% endblock object-tools %} {% block search %} {% endblock %} {% block filters %} {% if cl.has_filters %}
{% trans "Filter:" %} {% if cl.is_filtered %}{% trans "on" %}{% else %}{% trans "off" %}{% endif %}
{% endif %} {% endblock %} {% block result_list %}
{# INFO: javascript is loaded from cms.pagetree.js #} {% if cl.get_items or cl.get_items and cl.is_filtered %}
{% trans "Paste" %} ", "key": "view", "cls": "jstree-grid-cell-regular-options" }, { "title": "{{ _('View')|escapejs }}", "key": "preview" }, {% for lang in site_languages %}{ "title": "{{ lang|upper }}", "key": "{{ lang }}" }, {% endfor %} { "title": "{{ _('Menu')|escapejs }}", "key": "menu" }, { "title": "{{ _('Actions')|escapejs }}", "key": "options" }, { "title": "{{ _('Info')|escapejs }}", "key": "info" }] }' data-settings-url="{% cms_admin_url "cms_usersettings_session_store" %}">
{% else %} {# INFO: show add a page button when there are no items #} {% url opts|admin_urlname:'add' as add_url %} {% blocktrans %} There is no page around yet.
Add page now. {% endblocktrans %} {% endif %} {# INFO: show reset button when filtering is active #} {% if cl.is_filtered or request.GET.q %} {% trans "Reset filter" %} {% endif %} {# INFO: used when copying nodes #}
{% endblock result_list %}