0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00

Reinstate page type filter on page search view

This was inadvertently dropped in 71b9fb13b9 because the context variables in Django's ListView differ from the ones previously used by Wagtail, and the relevant test `pages.object_list.supports_facet` around the filter bar was not updated.
This commit is contained in:
Matt Westcott 2023-10-12 18:49:16 +01:00
parent 78f93af5c8
commit 6a6c16030b

View File

@ -11,7 +11,7 @@
{% search_other %}
{% if pages.object_list.supports_facet %}
{% if object_list.supports_facet %}
<nav class="listing-filter" aria-labelledby="page-types-title">
<h3 id="page-types-title" class="filter-title">{% trans "Page types" %}</h3>
<ul class="filter-options">