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:
parent
731dc95ffd
commit
0ac9003860
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user