{% load app_tags %}

{% for media in media_list %}
  <div {% if forloop.last and media_list.has_next %} hx-get="{% url 'medialist' media_type %}?page={{ media_list.next_page_number }}" hx-trigger="revealed threshold:200px" hx-swap="afterend" hx-include="#filter-form" hx-indicator="#loading-indicator" {% endif %}>
    {% include "app/components/media_card.html" with media=media item=media.item title=media.item from_grid=True %}
  </div>
{% endfor %}
