{# History view (T-156). One-level diff against the .bak file. #}

History: {{ filename }}

Diff of current file vs. last-saved backup ({{ backup_filename }}). One level of history is kept; each save overwrites the backup.

← Back to list
{% if backup_content is none %}
No backup exists for this file yet. A .bak is created automatically the first time you save an existing policy.
{% elif not diff_lines %}
The current file is byte-identical to its backup — no changes since the last save.
{% 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 %}
{% endif %}