Include 'There are no ... to display' in translatable block with add_url

pull/11444/head
Sage Abdullah 2024-01-18 14:51:39 +00:00
rodzic 407c0140e1
commit 092c9967ac
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
1 zmienionych plików z 5 dodań i 8 usunięć

Wyświetl plik

@ -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>