{# Timeline region — UX-035 adopter #7. Contract: ~/.claude/skills/ux-architect/components/timeline-region.md (UX-067) v0.62 CSS refactor: inline Tailwind → semantic .dz-timeline-* classes (components/regions.css). Hover state on `is-clickable` modifier toggled by `{% if action_url %}`; attention accent still flows through the unchanged attention_classes macro. #} {% from 'macros/status_badge.html' import render_status_badge %} {% from 'macros/region_wrapper.html' import region_card %} {% from 'macros/attention_accent.html' import attention_classes %} {% call region_card(title) %}
{% if _primary is none %}{{ item.get("name", (entity_name|default("Event"))) }}{% else %}{{ _primary }}{% endif %}
{% for col in columns %} {% if col.key != display_key and col.type != "date" %}{{ col.label }}: {% if col.type == "badge" %} {{ render_status_badge(value=item[col.key], size='sm') }} {% elif col.type == "bool" %} {{ item[col.key] | bool_icon }} {% elif col.type == "currency" %} {{ item[col.key] | currency }} {% elif col.type == "ref" %} {% set ref = item[col.key] %} {% if ref is mapping %}{{ ref.get("name") or ref.get("title") or ref.get("label") or ref.get("email") or ref.get("id", "") }}{% elif ref %}{{ ref }}{% else %}-{% endif %} {% else %} {{ item[col.key] | default("") | truncate_text }} {% endif %}
{% endif %} {% endfor %}Showing {{ items | length }} of {{ total }}
{% endif %} {% else %}{{ empty_message | default("No events yet.") }}
{% endif %}