20 lines
848 B
HTML
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 }}&last_member={{ member.id }}&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 %}
|