0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Rename breadcrumbs template tag to page_breadcrumbs

This commit is contained in:
Sage Abdullah 2023-09-07 10:24:12 +01:00
parent aa6f190139
commit 74d5a4c9fb
No known key found for this signature in database
GPG Key ID: EB1A33CC51CC0217
5 changed files with 5 additions and 5 deletions

View File

@ -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 %}

View File

@ -7,7 +7,7 @@
{{ title }}
</h1>
{# 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 #}
<div class="w-w-px w-h-[30px] w-ml-auto sm:w-ml-0 w-bg-border-furniture"></div>
{# Page actions dropdown #}

View File

@ -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 %}
<h1 class="w-sr-only">
{{ title }}

View File

@ -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 %}
<h1 class="w-sr-only">
{% blocktrans trimmed with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }} {{ title }}{% endblocktrans %}

View File

@ -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,