From f4f621cbc3fbc2d7f922214f36a2fd6006211944 Mon Sep 17 00:00:00 2001 From: PaarthAgarwal Date: Fri, 24 Jun 2022 14:34:57 +0530 Subject: [PATCH] =?UTF-8?q?breadcrumbs=20-=20remove=20=E2=80=98move?= =?UTF-8?q?=E2=80=99=20breadcrumbs=20as=20no=20longer=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wagtailadmin/shared/move_breadcrumb.html | 21 ------------------- .../admin/templatetags/wagtailadmin_tags.py | 15 ------------- 2 files changed, 36 deletions(-) delete mode 100644 wagtail/admin/templates/wagtailadmin/shared/move_breadcrumb.html diff --git a/wagtail/admin/templates/wagtailadmin/shared/move_breadcrumb.html b/wagtail/admin/templates/wagtailadmin/shared/move_breadcrumb.html deleted file mode 100644 index fb05cc95d9..0000000000 --- a/wagtail/admin/templates/wagtailadmin/shared/move_breadcrumb.html +++ /dev/null @@ -1,21 +0,0 @@ -{% load i18n wagtailadmin_tags %} - - diff --git a/wagtail/admin/templatetags/wagtailadmin_tags.py b/wagtail/admin/templatetags/wagtailadmin_tags.py index d52b6d3c53..47ef956a0c 100644 --- a/wagtail/admin/templatetags/wagtailadmin_tags.py +++ b/wagtail/admin/templatetags/wagtailadmin_tags.py @@ -92,21 +92,6 @@ def explorer_breadcrumb( } -@register.inclusion_tag("wagtailadmin/shared/move_breadcrumb.html", takes_context=True) -def move_breadcrumb(context, page_to_move, viewed_page): - user = context["request"].user - cca = get_explorable_root_page(user) - if not cca: - return {"pages": Page.objects.none()} - - return { - "pages": viewed_page.get_ancestors(inclusive=True) - .descendant_of(cca, inclusive=True) - .specific(), - "page_to_move_id": page_to_move.id, - } - - @register.inclusion_tag("wagtailadmin/shared/search_other.html", takes_context=True) def search_other(context, current=None): request = context["request"]