{% macro path_cell(paths) -%}
{%- if paths | length == 1 -%}
{{ paths[0] }}
{%- elif paths -%}
{{ paths | length }} paths
{% for path in paths %}
{{ path }}
| When | Event | Beets album id(s) | Beets track id(s) | Source path(s) | Destination path(s) |
|---|---|---|---|---|---|
| {% if event.pushed_at %} {% else %}—{% endif %} | {{ event.event_type }} | {{ event.album_ids | join(", ") if event.album_ids else "—" }} | {{ event.track_ids | join(", ") if event.track_ids else "—" }} | {{ path_cell(event.source_paths) }} | {{ path_cell(event.destination_paths) }} |
No beets events have been ingested yet.
{% endif %}