{% load i18n %}
{% if documents %}
{% if is_searching %}
{% blocktrans count counter=documents.paginator.count %}
There is one match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}
{% else %}
{% trans "Latest documents" %}
{% endif %}
{% include "wagtaildocs/documents/list.html" with choosing=1 %}
{% include "wagtailadmin/shared/pagination_nav.html" with items=documents is_ajax=1 %}
{% else %}
{% blocktrans %}Sorry, no documents match "{{ query_string }}"{% endblocktrans %}