{% extends "admin/change_list.html" %} {% load admin_interface_tags admin_list i18n %} {# copied from django 5.1.2 #} {% block filters %} {% if cl.has_filters %} {% translate 'Filter' %} {% if cl.is_facets_optional or cl.has_active_filters %} {% get_admin_interface_active_date_hierarchy cl as active_date_hierarchy %} {% get_admin_interface_setting "list_filter_removal_links" as list_filter_removal_links %} {% if list_filter_removal_links %} {% if cl.has_active_filters or active_date_hierarchy %} {# Translators: don't translate this, the django catalog already contains it #} ✖︎ {% translate "Clear all filters" %} {% if active_date_hierarchy %} {% admin_interface_date_hierarchy_removal_link cl active_date_hierarchy %} {% endif %} {% if cl.has_active_filters %} {% for spec in cl.filter_specs %} {% admin_interface_filter_removal_link cl spec %} {% endfor %} {% endif %} {% endif %} {% else %} {% if cl.has_active_filters %} ✖︎ {% translate "Clear all filters" %} {% endif %} {% endif %} {% endif %} {% for spec in cl.filter_specs %} {% admin_list_filter cl spec %} {% endfor %} {% comment %} Loaded exactly once per page here, not inside dropdown_filter.html (included once per filter) -- see that template's own comment and dropdown-filter.js's own top-of-file comment for why this matters. {% endcomment %} {% endif %} {% endblock filters %}