wcs: fix empty-message for cards (#56028)
gitea-wip/combo/pipeline/head There was a failure building this commit Details
gitea/combo/pipeline/head Build started... Details

This commit is contained in:
Lauréline Guérin 2021-08-10 11:19:24 +02:00
parent 23c3b5d066
commit 42e11b6cef
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@
{% include "combo/asset_picture_fragment.html" %}
{% endblock %}
{% if cards %}
<div class="links-list cards-{{ slug }} list-of-cards">
<ul>
{% for data in cards %}
@ -16,8 +17,9 @@
{% endfor %}
</ul>
</div>
{% if not cards %}<div class="empty-message"><p>{% trans "There are no cards." %}</p></div>{% endif %}
{% include "combo/pagination.html" %}
{% else %}
<div class="cell--body"><p class="empty-message">{% trans "There are no cards." %}</p></div>
{% endif %}
{% endblock %}