{% endif %}
{% 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 %}
{% blocktrans trimmed count counter=items_count %}
There is {{ counter }} match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}
{% endif %}
{% endblock %}
{% block no_results_message %}
{% fragment as no_results_message %}
{% if is_searching or is_filtering %}
{% blocktrans trimmed with model_name=model_opts.verbose_name_plural asvar no_results_text %}
No {{ model_name }} match your query.
{% endblocktrans %}
{% elif add_url %}
{% blocktrans trimmed with model_name=model_opts.verbose_name_plural asvar no_results_text %}
There are no {{ model_name }} to display. Why not add one?
{% endblocktrans %}
{% else %}
{% blocktrans trimmed with model_name=model_opts.verbose_name_plural asvar no_results_text %}
There are no {{ model_name }} to display.
{% endblocktrans %}
{% endif %}
{{ no_results_text|capfirst }}
{% endfragment %}