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

{% blocktrans count counter=documents|length %} There is {{ counter }} match {% plural %} There are {{ counter }} matches {% endblocktrans %}

{% search_other %} {% endif %} {% include "wagtaildocs/documents/list.html" %} {% include "wagtailadmin/shared/pagination_nav.html" with items=documents %} {% else %} {% if is_searching %}

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

{% search_other %} {% else %} {% url 'wagtaildocs:add_multiple' as wagtaildocs_add_document_url %} {% if current_collection %}

{% blocktrans %}You haven't uploaded any documents in this collection. Why not upload one now?{% endblocktrans %}

{% else %}

{% blocktrans %}You haven't uploaded any documents. Why not upload one now?{% endblocktrans %}

{% endif %} {% endif %} {% endif %}