From 587ddbae548b8ed8e5b7e0ab2bcb290e5522931e Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Fri, 16 Aug 2024 12:54:46 +0100 Subject: [PATCH] Rename wagtailadmin/pages/index.html to wagtailadmin/pages/listing.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This template is useful for other page listings where we may also want to enable bulk actions, e.g. the search view – and later, the workflows usage view, as well as the page type usage view. This is a separate commit just so git knows we're just renaming. We'll reinstate the pages/index.html as a no-op extension of this pages/listing.html template. --- .../wagtailadmin/pages/{index.html => listing.html} | 6 ++++++ 1 file changed, 6 insertions(+) rename wagtail/admin/templates/wagtailadmin/pages/{index.html => listing.html} (73%) diff --git a/wagtail/admin/templates/wagtailadmin/pages/index.html b/wagtail/admin/templates/wagtailadmin/pages/listing.html similarity index 73% rename from wagtail/admin/templates/wagtailadmin/pages/index.html rename to wagtail/admin/templates/wagtailadmin/pages/listing.html index 281770f300..d7e7b69436 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/index.html +++ b/wagtail/admin/templates/wagtailadmin/pages/listing.html @@ -1,5 +1,11 @@ {% extends "wagtailadmin/generic/index.html" %} {% load wagtailadmin_tags i18n %} +{% comment %} + A base template for listing pages in the Wagtail admin. This is used as-is + by non-explorable listings, e.g. in a `PageListingViewSet`'s `IndexView` and + in the main "Search" view. It is also extended by explorable_index.html for + additional functionality. +{% endcomment %} {% block bulk_actions %} {% include 'wagtailadmin/bulk_actions/footer.html' with select_all_obj_text=_("Select all pages in listing") app_label='wagtailcore' model_name='page' objects=page_obj %}