mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Refs #27888 -- Removed redundant {% if %} in admin changelist filters.
This commit is contained in:
parent
551f644b95
commit
5d654e1e71
@ -60,11 +60,9 @@
|
||||
{% if cl.has_filters %}
|
||||
<div id="changelist-filter">
|
||||
<h2>{% translate 'Filter' %}</h2>
|
||||
{% if cl.has_filters or cl.search_fields %}
|
||||
{% if cl.preserved_filters %}<h3 id="changelist-filter-clear">
|
||||
<a href="?{% if cl.is_popup %}_popup=1{% endif %}">✖ {% translate "Clear all filters" %}</a>
|
||||
</h3>{% endif %}
|
||||
{% endif %}
|
||||
{% if cl.preserved_filters %}<h3 id="changelist-filter-clear">
|
||||
<a href="?{% if cl.is_popup %}_popup=1{% endif %}">✖ {% translate "Clear all filters" %}</a>
|
||||
</h3>{% endif %}
|
||||
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user