0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Amend empty wording for index views depending on whether disabled tasks are shown

This commit is contained in:
jacobtm 2020-01-17 14:58:03 +00:00 committed by Matt Westcott
parent 731dc95ffd
commit 0ac9003860
2 changed files with 10 additions and 2 deletions

View File

@ -58,7 +58,11 @@
</div>
{% else %}
{% url view.add_url_name as add_url %}
<p>{% blocktrans %}No workflows have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% if showing_disabled %}
<p>{% blocktrans %}No workflows have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans %}There are no enabled workflows. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% endif %}
{% endif %}
{% if showing_disabled %}
<a href="?show_disabled=False" class="button secondary">{% trans "Hide Disabled Workflows" %}</a>

View File

@ -54,7 +54,11 @@
</div>
{% else %}
{% url view.add_url_name as add_url %}
<p>{% blocktrans %}No tasks have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% if showing_disabled %}
<p>{% blocktrans %}No tasks have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans %}There are no enabled tasks. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% endif %}
{% endif %}
{% if showing_disabled %}
<a href="?show_disabled=False" class="button secondary">{% trans "Hide Disabled Tasks" %}</a>