<commit_before>{% extends "wagtailadmin/pages/listing/_list.html" %}

{% load i18n %}

{# Page listing include, customised for 'explore' mode #}

{% block parent_page_title %}
    {% include "wagtailadmin/pages/listing/_parent_page_title_explore.html" %}
{% endblock %}

{% block post_parent_page_headers %}

    {% if parent_page %}
        {% if parent_page.is_root %}
            <tr><td colspan="6"><div class="help-block help-info">
                {% if perms.wagtailcore.add_site %}
                    {% url 'wagtailsites:index' as wagtailsites_index_url %}
                    <p>
                        {% blocktrans %}
                            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 %}
                            <a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
                        {% endif %}
                    </p>
                    <p>
                        {% blocktrans %}
                            If you just want to add pages to an existing site, create them as children of the homepage instead.
                        {% endblocktrans %}
                    </p>
                {% else %}
                    {% blocktrans %}
                        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 %}
            </div></td></tr>
        {% elif not parent_page.get_site %}
            <tr><td colspan="6"><div class="help-block help-warning">
                {% if perms.wagtailcore.add_site %}
                    {% url 'wagtailsites:index' as wagtailsites_index_url %}
                    {% blocktrans %}
                        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 %}
                        <a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
                    {% endif %}
                {% else %}
                    {% blocktrans %}
                        There is no site record for this location. Pages created here will not be accessible at any URL.
                    {% endblocktrans %}
                {% endif %}
            </div></td></tr>
        {% endif %}
    {% endif %}

    {% include "wagtailadmin/pages/listing/_table_headers_explore.html" %}
{% endblock %}

{% block page_title %}
    {% include "wagtailadmin/pages/listing/_page_title_explore.html" %}
{% endblock %}

{% block page_navigation %}
    {% include "wagtailadmin/pages/listing/_navigation_explore.html" %}
{% endblock %}

{% block no_results %}<commit_msg>Optimise configure site warning conditional<commit_after>{% extends "wagtailadmin/pages/listing/_list.html" %}

{% load i18n %}

{# Page listing include, customised for 'explore' mode #}

{% block parent_page_title %}
    {% include "wagtailadmin/pages/listing/_parent_page_title_explore.html" %}
{% endblock %}

{% block post_parent_page_headers %}

    {% if parent_page %}
        {% if parent_page.is_root %}
            <tr><td colspan="6"><div class="help-block help-info">
                {% if perms.wagtailcore.add_site %}
                    {% url 'wagtailsites:index' as wagtailsites_index_url %}
                    <p>
                        {% blocktrans %}
                            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 %}
                            <a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
                        {% endif %}
                    </p>
                    <p>
                        {% blocktrans %}
                            If you just want to add pages to an existing site, create them as children of the homepage instead.
                        {% endblocktrans %}
                    </p>
                {% else %}
                    {% blocktrans %}
                        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 %}
            </div></td></tr>
        {# get_url_parts will return None is the page has no site #}
        {% elif not parent_page.get_url_parts %}
            <tr><td colspan="6"><div class="help-block help-warning">
                {% if perms.wagtailcore.add_site %}
                    {% url 'wagtailsites:index' as wagtailsites_index_url %}
                    {% blocktrans %}
                        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 %}
                        <a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
                    {% endif %}
                {% else %}
                    {% blocktrans %}
                        There is no site record for this location. Pages created here will not be accessible at any URL.
                    {% endblocktrans %}
                {% endif %}
            </div></td></tr>
        {% endif %}
    {% endif %}

    {% include "wagtailadmin/pages/listing/_table_headers_explore.html" %}
{% endblock %}

{% block page_title %}
    {% include "wagtailadmin/pages/listing/_page_title_explore.html" %}
{% endblock %}

{% block page_navigation %}
    {% include "wagtailadmin/pages/listing/_navigation_explore.html" %}
{% endblock %}

{% block no_results %}
{'fraction_non_alphanumeric': 0.10654936461388075, 'fraction_numerical': 0.0013033561420658195, 'mean_word_length': 1.6001694197373995, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5452753', 'n_tokens_mistral': 1788, 'n_tokens_neox': 1496, 'n_words': 466}