{# Attributes of an element that keeps itself up to date: 750ms after it appears it fetches url and replaces itself with the response. The response repeats these attributes while there's more to show, and leaves them out to stop. htmx skips the request once the element has left the page. hx-target is explicit, otherwise elements in #dialog inherit the dialog. #} {% macro self_polling(url) -%} hx-get="{{ url }}" hx-trigger="load delay:750ms" hx-target="this" hx-swap="outerHTML" {%- endmacro %} {% macro render_series_timeline(series) %}
{{ "{:,}".format(s.release_count)}} new torrents
{{ "{:,}".format(s.release_count)}} new torrents