{% load i18n %} {% if items %} {% 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 %} {% else %} {% endif %} {% endif %} {% endif %}