diff --git a/wagtail/admin/templates/wagtailadmin/generic/index_results.html b/wagtail/admin/templates/wagtailadmin/generic/index_results.html index b5919cb70b..894f4fa5e0 100644 --- a/wagtail/admin/templates/wagtailadmin/generic/index_results.html +++ b/wagtail/admin/templates/wagtailadmin/generic/index_results.html @@ -28,19 +28,16 @@ {% blocktrans trimmed with model_name=model_opts.verbose_name_plural asvar no_results_text %} No {{ model_name }} match your query. {% endblocktrans %} - {{ no_results_text|capfirst }} + {% elif add_url %} + {% blocktrans trimmed with model_name=model_opts.verbose_name_plural asvar no_results_text %} + There are no {{ model_name }} to display. Why not add one? + {% endblocktrans %} {% else %} {% blocktrans trimmed with model_name=model_opts.verbose_name_plural asvar no_results_text %} There are no {{ model_name }} to display. {% endblocktrans %} - {{ no_results_text|capfirst }} - - {% if add_url %} - {% blocktrans trimmed %} - Why not add one? - {% endblocktrans %} - {% endif %} {% endif %} + {{ no_results_text|capfirst }} {% endfragment %}
{{ no_results_message }}