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
+15 -2
View File
@@ -1,6 +1,19 @@
{{define "category"}}Billing{{end}}
{{define "preheader"}}No further charges. {{.InstanceName}} keeps working until its licence expires.{{end}}
{{define "pill"}}{{template "chip" (dict "label" "Cancelled" "tone" "pend")}}{{end}}
{{define "title"}}Your subscription is cancelled{{end}}
{{define "title"}}Your subscription for {{.InstanceName}} is cancelled{{end}}
{{define "body"}}
{{template "lead" (printf "Your subscription for %s is cancelled." .InstanceName)}}
{{template "lead" (printf "Your subscription for %s is cancelled. No further payments will be taken." .InstanceName)}}
{{template "timeline" (list
(dict "label" "Cancelled" "date" "Today" "state" "done")
(dict "label" "Still active" "date" "Until licence expiry" "state" "now" "tone" "up")
(dict "label" "Read-only" "date" "After that" "state" "next"))}}
{{template "rows" (list
(dict "k" "Instance" "v" .InstanceName)
(dict "k" "Subscription" "v" "Cancelled")
(dict "k" "Further charges" "v" "None"))}}
{{template "p" "Your instance keeps working until the current licence expires. After that, monitors keep running but changes are disabled."}}
{{if .PortalURL}}{{template "callout" (dict "tone" "accent" "title" "Changed your mind?" "text" "You can start a new subscription from Vantage HQ at any time.")}}
{{template "button" (dict "label" "Open Vantage HQ" "url" .PortalURL)}}{{end}}
{{end}}
{{define "why"}}the subscription for {{.InstanceName}} was cancelled.{{end}}