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
+16 -4
View File
@@ -1,8 +1,20 @@
{{define "subject"}}You have been invited to {{.AccountName}} on Vantage{{end}}
{{define "tone"}}accent{{end}}
{{define "category"}}Account{{end}}
{{define "pill"}}{{template "chip" (dict "label" "Invitation" "tone" "accent")}}{{end}}
{{define "title"}}You have been invited to {{.AccountName}}{{end}}
{{define "body"}}
{{template "lead" (printf "You have been invited to join %s on Vantage." .AccountName)}}
{{template "p" "Set your own password and finish joining:"}}
{{template "button" (dict "label" "Set password and join" "url" .Link)}}
{{template "p" "This link expires in 24 hours. If you were not expecting this, ignore it - nothing happens until you open the link."}}
{{template "lead" (printf "You have been invited to join %s on Vantage, where the team manages its servers, agents and monitors." .AccountName)}}
{{template "button" (dict "label" "Accept invitation" "url" .Link)}}
{{template "rows" (list
(dict "k" "Account" "v" .AccountName)
(dict "k" "Invited address" "v" .Email)
(dict "k" "Link valid for" "v" (plural .TTLHours "hour" "hours")))}}
{{template "label" "Joining takes a minute"}}
{{template "steps" (list
(dict "t" "Accept the invitation" "d" "Open the link above from this inbox.")
(dict "t" "Choose your password" "d" "It is yours alone. Nobody else on the account can see it.")
(dict "t" "Sign in to Vantage HQ" "d" (printf "Use %s from then on." .Email)))}}
{{template "callout" (dict "tone" "none" "title" "Not expecting this?" "text" "Ignore it. Nothing happens until you open the link, and it expires on its own.")}}
{{end}}
{{define "why"}}someone on the {{.AccountName}} account invited {{.Email}}.{{end}}