{{ $emoji := dict "caution" ":exclamation:" "warning" ":warning:" "important" ":information_source:" "tip" ":bulb:" }} {{- if eq .Type "alert" -}}
{{- else -}}{{- transform.Emojify (index $emoji .AlertType) -}} {{ if .AlertTitle }} {{- .AlertTitle -}} {{ else }} {{- .AlertType | title -}} {{ end }}
{{- .Text -}}
{{- .Text -}}{{- end -}} {{- /* chomp trailing newline */ -}}