{% load i18n %} {% if documents %} {% if is_searching %}

{% blocktrans count counter=documents.paginator.count %} There is {{ counter }} match {% plural %} There are {{ counter }} matches {% endblocktrans %}

{% else %}

{% trans "Latest documents" %}

{% endif %} {% include "wagtaildocs/documents/list.html" with choosing=1 %} {% include "wagtailadmin/shared/ajax_pagination_nav.html" with items=documents %} {% else %} {% if documents_exist %}

{% blocktrans %}Sorry, no documents match "{{ query_string }}"{% endblocktrans %}

{% else %}

{% if collection_id %} {% trans "You haven't uploaded any documents in this collection." %} {% else %} {% trans "You haven't uploaded any documents." %} {% endif %} {% if uploadform %} {% url 'wagtaildocs:add_multiple' as wagtaildocs_add_document_url %} {% blocktrans %} Why not upload one now? {% endblocktrans %} {% endif %}

{% endif %} {% endif %}