{% import "partials/icons.html" as icons %}

{{ month.heading }}

{% for event in month.events %}
{# Timeline node/bullet #}
{# Category — always visible #} {% if event.entity_type == "brew" %}{{ icons::beaker("h-3 w-3 shrink-0") }}{% elif event.entity_type == "roast" %}{{ icons::coffee_bean("h-3 w-3 shrink-0") }}{% elif event.entity_type == "roaster" %}{{ icons::fire("h-3 w-3 shrink-0") }}{% elif event.entity_type == "bag" %}{{ icons::bag("h-3 w-3 shrink-0") }}{% elif event.entity_type == "cup" %}{{ icons::cup("h-3 w-3 shrink-0") }}{% elif event.entity_type == "cafe" %}{{ icons::location("h-3 w-3 shrink-0") }}{% elif event.entity_type == "gear" %}{{ icons::grinder("h-3 w-3 shrink-0") }}{% endif %} {{ event.kind_label }} {# Relative date — shown when collapsed #} · {{ event.relative_date_label }} {# Full timestamp — shown when expanded #} {# Expand/collapse chevron #} {{ icons::chevron_down("h-4 w-4") }}

{{ event.title }} {# External link — shown when expanded #} {% if let Some(url) = event.external_link %} {% endif %}

{# Subtitle — shown when collapsed #} {% if let Some(sub) = event.subtitle %}

{{ sub }}

{% endif %} {# Detail rows — shown when expanded #} {% if event.details.len() > 0 %} {% endif %}
{% endfor %}