lock items_with_access %}
    {% if items %}
        <p>{% trans "Are you sure you want to publish these pages?" %}</p>
        <ul>
            {% for page in items %}
                <li>
                    <a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
                    {% with draft_descendant_count=page.draft_descendant_count %}
                        {% if draft_descendant_count %}
                            