lib.itmens/journal/templates/collection_items.html
2025-01-20 15:36:28 -05:00

20 lines
848 B
HTML

{% load thumb %}
{% load i18n %}
{% load l10n %}
{% for member in members %}
{% include '_list_item.html' with item=member.item mark=None collection_member=member %}
{% if forloop.counter == 10 %}<div class="loader-mark"></div>{% endif %}
{% if forloop.last %}
<div hx-get="{% url 'journal:collection_retrieve_items' collection.uuid %}?last_pos={{ member.position }}&amp;last_member={{ member.id }}&amp;edit={{ request.GET.edit }}"
hx-trigger="load delay:0.1s"
hx-swap="outerHTML"
class=".loader">
<i class="fa-solid fa-compact-disc fa-spin loading"></i>
</div>
{% endif %}
{% empty %}
{% if not request.GET.last_pos and not collection_edit %}
{% trans "nothing so far." %}
{% endif %}
{% endfor %}
{% if msg %}<script type="text/javascript">alert("{{ msg|escapejs }}");</script>{% endif %}