{% load i18n %}{% comment %} Field-level diff for one audit-trail entry. Context: `rows` — the output of `snapadmin.audit.diff_rows()`, i.e. a list of {field, old, new, changed} where both sides are already rendered as text and already masked for the viewer. Values are printed as text and escaped by the template: an audit row holds whatever was typed into the admin, so it is never marked safe. Included per entry by snapadmin/audit_timeline.html and rendered on its own for the audit-log change form, so the styling is inline — the fragment must look the same under plain Django admin and under django-unfold, without either theme's stylesheet. Tints are translucent so they read on a light and a dark background. {% endcomment %} {% if rows %} {% for row in rows %} {% endfor %}
{% translate "Field" %} {% translate "Before" %} {% translate "After" %}
{{ row.field }} {{ row.old }} {{ row.new }}
{% else %}

{% translate "No field-level diff was recorded for this action." %}

{% endif %}