mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 01:22:07 +01:00
Remove obsolete explorer nav templates / tags
This commit is contained in:
parent
b5252d96f2
commit
69bc5d4698
@ -1,5 +0,0 @@
|
||||
{% load wagtailadmin_tags %}
|
||||
|
||||
<ul class="dl-menu">
|
||||
{% include "wagtailadmin/shared/explorer_nav_child.html" %}
|
||||
</ul>
|
@ -1,13 +0,0 @@
|
||||
{% load wagtailadmin_tags %}
|
||||
|
||||
{% for page, children in nodes %}
|
||||
<li {% if children %}class="has-children"{% endif %}>
|
||||
<a href="{% url 'wagtailadmin_explore' page.id %}" class="icon icon-folder-open-inverse">{{ page.get_admin_display_title }}</a>
|
||||
{% if children %}
|
||||
<div class="children icon icon-arrow-right"></div>
|
||||
<ul class="dl-submenu">
|
||||
{% explorer_subnav children %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
@ -14,7 +14,7 @@ from django.utils.safestring import mark_safe
|
||||
|
||||
from wagtail.utils.pagination import DEFAULT_PAGE_KEY, replace_page_in_query
|
||||
from wagtail.wagtailadmin.menu import admin_menu
|
||||
from wagtail.wagtailadmin.navigation import get_explorable_root_page, get_navigation_menu_items
|
||||
from wagtail.wagtailadmin.navigation import get_explorable_root_page
|
||||
from wagtail.wagtailadmin.search import admin_search_areas
|
||||
from wagtail.wagtailcore import hooks
|
||||
from wagtail.wagtailcore.models import Page, PageViewRestriction, UserPagePermissionsProxy
|
||||
@ -31,20 +31,6 @@ else:
|
||||
assignment_tag = register.assignment_tag
|
||||
|
||||
|
||||
@register.inclusion_tag('wagtailadmin/shared/explorer_nav.html', takes_context=True)
|
||||
def explorer_nav(context):
|
||||
return {
|
||||
'nodes': get_navigation_menu_items(context['request'].user)
|
||||
}
|
||||
|
||||
|
||||
@register.inclusion_tag('wagtailadmin/shared/explorer_nav_child.html')
|
||||
def explorer_subnav(nodes):
|
||||
return {
|
||||
'nodes': nodes
|
||||
}
|
||||
|
||||
|
||||
@register.simple_tag(takes_context=True)
|
||||
def menu_search(context):
|
||||
request = context['request']
|
||||
|
Loading…
Reference in New Issue
Block a user