{# Rows for the /admin/review triage table. Rendered standalone for an HTMX GET and {% include %}-d by admin/review.html for the full-page render. Each row's id (job-) doubles as the badge link anchor from jobs/_row.html and the approve/drop swap target. #} {% for job in jobs %} {% set _key = job.dedup_key | urlencode | replace('%', '') %} {% set _reasons = job.unresolved_reasons | from_json %} {% set _locs = job.locations_structured | from_json %} {% set _loc_unresolved = false %} {% if _locs and _locs is not mapping and _locs is not string %} {% set _loc_unresolved = (_locs | selectattr('unresolved') | list | length) > 0 %} {% endif %} {% set _labels = _reasons + (['unresolved location'] if _loc_unresolved else []) %} {{ job.title }} {{ job.company }} {% for label in _labels %} {{ label }} {% else %} {% endfor %} {% else %} Nothing to review. {% endfor %}