{{- /* Lines at the top of a mail form (mailInfoView): description, file or custom code, status, sample variables, partial call, drift callout. */ -}} {{- with .Data -}} {{- if .Description }}
{{ .Description }}
{{ end -}} {{- if .File }}{{ range .File }}{{ if .Code }}{{ .Text }}{{ else }}{{ .Text }}{{ end }}{{ end }}
{{ trans "backend::lang.mail.info_custom_layout" }} {{ .CustomCode }}
{{ trans .Status }}
{{ end -}} {{- if .Template }}{{ if .Variables }}{{ trans "backend::lang.mail.info_variables" }} {{ range $i, $name := .Variables }}{{ if $i }}, {{ end }}{{ $name }}{{ end }}
{{ trans "backend::lang.mail.info_no_samples" }}
{{ end }}{{ end -}} {{- if .Usage }}{{ trans "backend::lang.mail.info_partial_usage" }} {{ .Usage }}
{{ trans "backend::lang.mail.drift_title" }}
{{ trans "backend::lang.mail.drift_text" }}