Changes messages in empty list of images\documents (#2471)

This commit introduces tiny UX improvements for empty lists of images and documents:
 * Same message in both lists
 * Gives link to multiple upload form in both lists
pull/2470/merge
Mikalai Radchuk 2016-04-11 15:55:43 +03:00 zatwierdzone przez Karl Hobley
rodzic 5cb7ae01f6
commit 37803fa3dd
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -21,7 +21,7 @@
{% search_other %}
{% else %}
{% url 'wagtaildocs:add' as wagtaildocs_add_document_url %}
{% url 'wagtaildocs:add_multiple' as wagtaildocs_add_document_url %}
{% if current_collection %}
<p>{% blocktrans %}You haven't uploaded any documents in this collection. Why not <a href="{{ wagtaildocs_add_document_url }}">upload one now</a>?{% endblocktrans %}</p>
{% else %}

Wyświetl plik

@ -36,9 +36,9 @@
{% else %}
{% url 'wagtailimages:add_multiple' as wagtailimages_add_image_url %}
{% if current_collection %}
<p>{% blocktrans %}You've not uploaded any images in this collection. Why not <a href="{{ wagtailimages_add_image_url }}">add one now</a>?{% endblocktrans %}</p>
<p>{% blocktrans %}You haven't uploaded any images in this collection. Why not <a href="{{ wagtailimages_add_image_url }}">upload one now</a>?{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans %}You've not uploaded any images. Why not <a href="{{ wagtailimages_add_image_url }}">add one now</a>?{% endblocktrans %}</p>
<p>{% blocktrans %}You haven't uploaded any images. Why not <a href="{{ wagtailimages_add_image_url }}">upload one now</a>?{% endblocktrans %}</p>
{% endif %}
{% endif %}
{% endif %}