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

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

{% else %}

{% trans "Latest documents" %}

{% endif %} {% component table %} {% include "shatailadmin/shared/pagination_nav.html" with items=documents linkurl='shataildocs:chooser_results' %} {% else %} {% if documents_exist %}

{% blocktrans trimmed %}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 %} {% blocktrans trimmed %} Why not upload one now? {% endblocktrans %} {% endif %}

{% endif %} {% endif %}