{{ $context := .context }} {{ if .events }}
    {{ range .events }}
  1. {{ .event }} {{ if .link }} {{.link.local_id}} {{ else }} {{ .script }} {{ end }}
  2. {{ end }}
{{ end }}