{# Partial: diff confirmation step (T-156). Swapped into #policy-editor-body. #}

Confirm save: {{ filename }}

{% if diff_lines %} {{ add_count }} addition{{ '' if add_count == 1 else 's' }}, {{ del_count }} deletion{{ '' if del_count == 1 else 's' }}. {% else %} No changes — the proposed content is byte-identical to the current file. {% endif %}

← Back to editor (cancel)
{% if not diff_lines %}
Nothing to save. Use "Back to editor" to make changes first.
{% else %}
{% for ln in diff_lines %}{% if ln.kind == 'add' %}+{% elif ln.kind == 'del' %}-{% elif ln.kind == 'meta' %}{{ ln.text }}{% else %} {% endif %}{{ ln.text if ln.kind != 'meta' else '' }}
{% endfor %}
Cancel
{% endif %}