{% extends "wagtailadmin/generic/listing_results.html" %}
{% load i18n %}

{% block results %}
    {% if is_searching or is_filtering %}
        <h2 role="alert">
            {% blocktrans trimmed count counter=items_count %}
                There is {{ counter }} match
            {% plural %}
                There are {{ counter }} matches
            {% endblocktrans %}
        </h2>
    {% endif %}
    {{ block.super }}
{% endblock %}

{% block 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 %}
    {% else %}
        {% blocktrans trimmed with model_name=model_opts.verbose_name_plural asvar no_results_text %}
            There are no {{ model_name }} to display
        {% endblocktrans %}
    {% endif %}

    <p>{{ no_results_text|capfirst }}</p>
{% endblock %}
