{# Single audit trail row. Variables (from loop context): entry (AuditIndex): The audit entry. verification_status (dict[str, bool|None]): entry.id -> verified status. #} {{ entry.created_at.strftime('%Y-%m-%d %H:%M:%S') if entry.created_at else '' }} {% if entry.action == 'create' %} create {% elif entry.action == 'update' %} update {% elif entry.action == 'delete' %} delete {% elif entry.action == 'sign' %} sign {% else %} {{ entry.action }} {% endif %} {{ entry.entity_type or '' }} {% if entry.entity_type == 'batch' and entry.entity_id %} {{ entry.entity_id[:8] }}... {% else %} {{ entry.entity_id or '' }} {% endif %} {{ entry.user_id or '' }} {% set vstatus = verification_status.get(entry.id) %} {% if vstatus is true %} {% elif vstatus is false %} {% else %} {% endif %}