From 74d5a4c9fb87d7649efb9c3ade127f5b265e0b9f Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Thu, 7 Sep 2023 10:24:12 +0100 Subject: [PATCH] Rename breadcrumbs template tag to page_breadcrumbs --- .../admin/templates/wagtailadmin/chooser/_browse_results.html | 2 +- .../admin/templates/wagtailadmin/pages/page_listing_header.html | 2 +- .../wagtailadmin/shared/headers/page_create_header.html | 2 +- .../templates/wagtailadmin/shared/headers/page_edit_header.html | 2 +- wagtail/admin/templatetags/wagtailadmin_tags.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wagtail/admin/templates/wagtailadmin/chooser/_browse_results.html b/wagtail/admin/templates/wagtailadmin/chooser/_browse_results.html index 5f77e85c5c..13bf032036 100644 --- a/wagtail/admin/templates/wagtailadmin/chooser/_browse_results.html +++ b/wagtail/admin/templates/wagtailadmin/chooser/_browse_results.html @@ -16,7 +16,7 @@ {% endif %} {% querystring p=None as querystring_value %} -{% breadcrumbs parent_page 'wagtailadmin_choose_page_child' include_self=False is_expanded=True querystring_value=querystring_value %} +{% page_breadcrumbs parent_page 'wagtailadmin_choose_page_child' include_self=False is_expanded=True querystring_value=querystring_value %} {% component table %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html b/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html index fd51f91059..a473444ace 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html +++ b/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html @@ -7,7 +7,7 @@ {{ title }} {# breadcrumbs #} - {% breadcrumbs parent_page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' is_expanded=parent_page.is_root classname='sm:w-py-3 lg:w-py-7' %} + {% page_breadcrumbs parent_page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' is_expanded=parent_page.is_root classname='sm:w-py-3 lg:w-py-7' %} {# Actions divider #}
{# Page actions dropdown #} diff --git a/wagtail/admin/templates/wagtailadmin/shared/headers/page_create_header.html b/wagtail/admin/templates/wagtailadmin/shared/headers/page_create_header.html index d1122684d3..a911012f66 100644 --- a/wagtail/admin/templates/wagtailadmin/shared/headers/page_create_header.html +++ b/wagtail/admin/templates/wagtailadmin/shared/headers/page_create_header.html @@ -3,7 +3,7 @@ {% block header_content %} {% blocktrans trimmed asvar title with model_name=content_type.model_class.get_verbose_name %}New: {{ model_name }}{% endblocktrans %} - {% breadcrumbs parent_page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' include_self=True trailing_breadcrumb_title=title %} + {% page_breadcrumbs parent_page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' include_self=True trailing_breadcrumb_title=title %}

{{ title }} diff --git a/wagtail/admin/templates/wagtailadmin/shared/headers/page_edit_header.html b/wagtail/admin/templates/wagtailadmin/shared/headers/page_edit_header.html index c2d2b22948..de051d1ecb 100644 --- a/wagtail/admin/templates/wagtailadmin/shared/headers/page_edit_header.html +++ b/wagtail/admin/templates/wagtailadmin/shared/headers/page_edit_header.html @@ -2,7 +2,7 @@ {% load wagtailadmin_tags i18n %} {% block header_content %} - {% breadcrumbs page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' page_perms=page_perms %} + {% page_breadcrumbs page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' page_perms=page_perms %}

{% blocktrans trimmed with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }} {{ title }}{% endblocktrans %} diff --git a/wagtail/admin/templatetags/wagtailadmin_tags.py b/wagtail/admin/templatetags/wagtailadmin_tags.py index 09fb713f0d..997f32fac6 100644 --- a/wagtail/admin/templatetags/wagtailadmin_tags.py +++ b/wagtail/admin/templatetags/wagtailadmin_tags.py @@ -66,7 +66,7 @@ register.filter("naturaltime", naturaltime) @register.inclusion_tag("wagtailadmin/shared/breadcrumbs.html", takes_context=True) -def breadcrumbs( +def page_breadcrumbs( context, page, url_name,