kopia lustrzana https://github.com/wagtail/wagtail
Include 'There are no ... to display' in translatable block with add_url
rodzic
407c0140e1
commit
092c9967ac
|
|
@ -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 <a href="{{ add_url }}">add one</a>?
|
||||
{% 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 <a href="{{ add_url }}">add one</a>?
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{{ no_results_text|capfirst }}
|
||||
{% endfragment %}
|
||||
|
||||
<p>{{ no_results_message }}</p>
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue