{% load i18n %} {% if items %} {% if is_searching %}

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

{% endif %} {% include "wagtailsnippets/snippets/list.html" %} {% url 'wagtailsnippets:list' model_opts.app_label model_opts.model_name as wagtailsnippets_list_url %} {% include "wagtailadmin/shared/pagination_nav.html" with items=items linkurl=wagtailsnippets_list_url %} {% else %} {% if is_searching %}

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

{% else %} {% url 'wagtailsnippets:add' model_opts.app_label model_opts.model_name as wagtailsnippets_create_url %} {# NOTE: The two strings in the following messages are exactly the same #} {# The difference is that the first variant appends '?locale={{ locale.language_code}}' to 'wagtailsnippets_create_url' #} {% if locale %}

{% blocktrans with snippet_type_name_plural=model_opts.verbose_name_plural wagtailsnippets_create_url=wagtailsnippets_create_url|add:'?locale='|add:locale.language_code %}No {{ snippet_type_name_plural }} have been created. Why not add one?{% endblocktrans %}

{% else %}

{% blocktrans with snippet_type_name_plural=model_opts.verbose_name_plural %}No {{ snippet_type_name_plural }} have been created. Why not add one?{% endblocktrans %}

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