mirror of https://github.com/django/django.git
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 %}
|
{% if cl.has_filters %}
|
||||||
<div id="changelist-filter">
|
<div id="changelist-filter">
|
||||||
<h2>{% translate 'Filter' %}</h2>
|
<h2>{% translate 'Filter' %}</h2>
|
||||||
{% if cl.has_filters or cl.search_fields %}
|
|
||||||
{% if cl.preserved_filters %}<h3 id="changelist-filter-clear">
|
{% if cl.preserved_filters %}<h3 id="changelist-filter-clear">
|
||||||
<a href="?{% if cl.is_popup %}_popup=1{% endif %}">✖ {% translate "Clear all filters" %}</a>
|
<a href="?{% if cl.is_popup %}_popup=1{% endif %}">✖ {% translate "Clear all filters" %}</a>
|
||||||
</h3>{% endif %}
|
</h3>{% endif %}
|
||||||
{% endif %}
|
|
||||||
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
|
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue