feat: Updated email templates

This commit is contained in:
2026-09-10 12:06:29 +00:00
parent 059949674d
commit e1ad2467d2
34 changed files with 896 additions and 163 deletions
+8 -1
View File
@@ -1,4 +1,7 @@
{{define "title"}}New contact enquiry{{end}}
{{define "category"}}Enquiry{{end}}
{{define "preheader"}}{{.Topic}} from {{.Name}}: {{.Message}}{{end}}
{{define "pill"}}{{if .Topic}}{{template "chip" (dict "label" .Topic "tone" "accent")}}{{end}}{{end}}
{{define "title"}}New enquiry from {{.Name}}{{end}}
{{define "body"}}
{{template "lead" "Someone has used the contact form on the Vantage site."}}
{{template "rows" (list
@@ -7,5 +10,9 @@
(dict "k" "Servers" "v" .Servers)
(dict "k" "Topic" "v" .Topic)
(dict "k" "Received" "v" .Received))}}
{{template "label" "Message"}}
{{template "note" .Message}}
{{template "button" (dict "label" (printf "Reply to %s" .Name) "url" (printf "mailto:%s" .Email) "nofallback" true)}}
{{template "small" (printf "Replying to this email also goes straight to %s." .Email)}}
{{end}}
{{define "why"}}this inbox receives the contact form on the Vantage site.{{end}}