{% extends "wagtailadmin/pages/index_results.html" %} {% load wagtailadmin_tags i18n %} {% block before_results %} {% if not is_searching and not is_filtering %} {% comment %} Messages about any special implications / treatment of pages in the current section (e.g. they are unroutable because no site is associated) are only shown if we are not searching or filtering. This is because search / filter results include descendant pages, for which the message would not necessarily be accurate. {% endcomment %} {% 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 %} {% endblock %}