{# Always-open query review surface used by opportunity and job details. The order is deliberately Original -> Suggested -> Diff. Users start from the query that actually ran, then inspect the proposed SQL, then use the diff for a focused review. #} {% macro query_copy_button() %} {% endmacro %} {% macro query_sql_pane(sql) %}
{% for line in (sql or "").split('\n') %}{{ loop.index }}{{ line }}
{% endfor %}