{# Catalog-load progress fragment. HTMX polls itself every 500 ms via hx-trigger="load delay:500ms" until the poll endpoint returns the final catalog fragment (done + swap element goes away). #}
Loading catalog…
{% set pct = ((loaded or 0) * 100 // total) if total else 0 %}

{{ loaded or 0 }} / {{ total }} XML files scanned {% if directory %}from {{ directory }}{% endif %}