{% extends "base.html" %} {% from "macros.html" import icon, btn, badge %} {% block title %}{{ t('History') }}{% endblock %} {% block content %} {% if entries %}
{% for e in entries %}
{{ badge(e.action, 'brand') }} {{ e.who }} {{ e.when }}
{% if e.changes %}
{% for c in e.changes %} {% endfor %}
{{ t('Field') }} {{ t('Before') }} {{ t('After') }}
{{ c.field }} {{ c.old if c.old is not None else '—' }} {{ c.new if c.new is not None else '—' }}
{% endif %}
{% endfor %}
{% else %}
{{ icon('history', 24, 'empty-icon') }}

{{ t('No history records') }}

{{ t('There are no recorded changes for this item in the audit log.') }}

{% endif %} {% endblock %}