{# ── Field label ── #}
{% if h.field_name == 'assigned_to' %}
Assigned To
{% elif h.field_name == 'status' %}
Status
{% elif h.field_name == 'priority' %}
Priority
{% else %}
{{ h.field_name.replace('_',' ').title() }}
{% endif %}
{# ── Values — format status/priority nicely; keep others as-is ── #}
{% set old = h.old_value or 'Unassigned' %}
{% set new = h.new_value or 'Unassigned' %}
{% if h.field_name in ('status', 'priority') %}
{% set old = old.replace('_',' ').title() %}
{% set new = new.replace('_',' ').title() %}
{% endif %}
changed from {{ old }} to {{ new }} by {{ h.changer.full_name }} · {{ h.changed_at.strftime('%b %d %H:%M') }}