{% load wagtailadmin_tags i18n %} {% block before_results %} {% if view.active_filters %} {% include "wagtailadmin/shared/active_filters.html" with active_filters=view.active_filters %} {% endif %} {% if render_filters_fragment %} {% include "wagtailadmin/shared/headers/_filters.html" with filters=filters %} {% endif %} {% if render_buttons_fragment %} {% for button in header_buttons %} {% component button %} {% endfor %} {% endif %} {% block other_searches %}{% endblock %} {% if not object_list %} {# pass, to allow the same logic as `if object_list and (is_searching or is_filtering)` #} {% elif is_searching or is_filtering %}
{{ no_results_message|capfirst }}
{% endblock %}