{% extends "wagtailadmin/base.html" %} {% load wagtailadmin_tags i18n %} {% block titletag %}{% blocktrans trimmed with title=parent_page.get_admin_display_title %}Exploring {{ title }}{% endblocktrans %}{% endblock %} {% block bodyclass %}page-explorer {% if ordering == 'ord' %}reordering{% endif %}{% endblock %} {% block content %} {% page_permissions parent_page as parent_page_perms %}
{% include 'wagtailadmin/pages/page_listing_header.html' with title=parent_page.get_admin_display_title page_perms=parent_page_perms %} {% include "wagtailadmin/shared/side_panels.html" with in_explorer=True %}
{% csrf_token %} {% if parent_page %} {% if parent_page.is_root %}
{% icon name='help' %} {% if perms.wagtailcore.add_site %} {% url 'wagtailsites:index' as wagtailsites_index_url %}

{% blocktrans trimmed %} The root level is where you can add new sites to your Wagtail installation. Pages created here will not be accessible at any URL until they are associated with a site. {% endblocktrans %} {% if wagtailsites_index_url %} {% trans "Configure a site now." %} {% endif %}

{% blocktrans trimmed %} If you just want to add pages to an existing site, create them as children of the homepage instead. {% endblocktrans %}

{% else %} {% blocktrans trimmed %} Pages created here will not be accessible at any URL. To add pages to an existing site, create them as children of the homepage. {% endblocktrans %} {% endif %}
{# get_url_parts will return None is the page has no site #} {% elif not parent_page.get_url_parts %}
{% icon name='warning' %} {% if perms.wagtailcore.add_site %} {% url 'wagtailsites:index' as wagtailsites_index_url %} {% blocktrans trimmed %} There is no site set up for this location. Pages created here will not be accessible at any URL until a site is associated with this location. {% endblocktrans %} {% if wagtailsites_index_url %} {% trans "Configure a site now." %} {% endif %} {% else %} {% blocktrans trimmed %} There is no site record for this location. Pages created here will not be accessible at any URL. {% endblocktrans %} {% endif %}
{% endif %} {% endif %} {% component table %} {% if is_paginated %} {% include "wagtailadmin/shared/pagination_nav.html" with items=page_obj linkurl=index_url %} {% endif %} {% trans "Select all pages in listing" as select_all_text %} {% include 'wagtailadmin/bulk_actions/footer.html' with select_all_obj_text=select_all_text app_label='wagtailcore' model_name='page' objects=pages %}
{% endblock %} {% block extra_js %} {{ block.super }} {% comment %} modal-workflow is required by the view restrictions interface {% endcomment %} {% comment %} The first column will display checkboxes only if ordering is not being carried out, in which case that column will have the drag and drop buttons to enable ordering {% endcomment %} {% if not show_ordering_column %} {% endif %} {% endblock %}