{{ define "timeline_pattern.html" }} {{ template "demo_doc_start" . }} {{ template "demo_masthead" (dict "label" "Pattern Demo" "title" .Title "lead" "Grouped timeline cards by day with source/action filters and single drilldown modal." "back_url" "/" "back_text" "← Back to catalog") }}

Timeline Filters

Grouped Cards

{{ if .Cards }}
{{ range .Cards }}

{{ .Day }}

{{ .Title }}

{{ .Action }} {{ .Source }}
Models / Types
{{ range .SummaryLeft }}{{ . }}{{ end }}
Slots / Scope
{{ range .SummaryRight }}{{ . }}{{ end }}
{{ .Count }} event(s) Open details
{{ end }}
{{ else }}
No timeline cards match current filters.
{{ end }}
{{ if .OpenCard }}
{{ .OpenCard.Title }}

{{ .OpenCard.Day }} · {{ .OpenCard.Source }} · {{ .OpenCard.Action }}

Reset
{{ if .OpenCard.Items }} {{ range .OpenCard.Items }}
{{ .Action }} · {{ .At }}
{{ .Entity }} · {{ .Target }}
{{ .Slot }} · {{ .Device }} · {{ .Source }}
{{ end }} {{ else }}
No events match the card filter.
{{ end }}
{{ if .ActiveEvent }}

Event Detail

When: {{ .ActiveEvent.At }}
Action: {{ .ActiveEvent.Action }}
Source: {{ .ActiveEvent.Source }}
Entity: {{ .ActiveEvent.Entity }}
Target: {{ .ActiveEvent.Target }}
Slot / Device: {{ .ActiveEvent.Slot }} · {{ .ActiveEvent.Device }}
{{ .ActiveEvent.Detail }}
{{ else }}
Select an event to view details.
{{ end }}
{{ end }} {{ template "demo_doc_end" . }} {{ end }}