{# One card per JobVersion. Header: version index + date range + execution count + cost. Body: unified diff against the previous version (or "Initial version" copy for v1). Footer: chips for resolved / newly-introduced rules. Anchor target: id="version-{{ version.version_id }}". The chart's click-handler navigates to /jobs/{first_job_id}?from=cohort which hits the per-execution view; the per-execution view then links back to /jobs/{table}#execution-{job_id} which scrolls to a matching anchor lower in this card. #}
Initial version in this scan window — no previous version to diff against.
{% for line in (version.query_text or '').split('\n') %}{{ loop.index }}{{ line }}
{% endfor %}