Files
vantage-shared/mail/templates/deletionwarning.txt.tmpl
T
2026-09-10 12:06:29 +00:00

22 lines
1.4 KiB
Cheetah

{{define "subject"}}{{.InstanceName}} will be deleted {{.When}}{{end}}
{{define "tone"}}down{{end}}
{{define "category"}}Licence{{end}}
{{define "pill"}}{{template "chip" (dict "label" "Deletion scheduled" "tone" "down")}}{{end}}
{{define "title"}}{{.InstanceName}} will be deleted {{.When}}{{end}}
{{define "body"}}
{{template "lead" (printf "%s and everything in it will be deleted %s, on %s." .InstanceName .When (date .DeleteOn))}}
{{template "button" (dict "label" "Keep this instance" "url" .PortalURL)}}
{{template "callout" (dict "tone" "down" "title" "This cannot be undone" "text" (printf "Servers, agents, monitors, workflows, history and settings in %s are removed permanently. They cannot be restored afterwards." .InstanceName))}}
{{template "timeline" (list
(dict "label" "Licence" "date" "Expired" "state" "done")
(dict "label" "Read-only" "date" "Now" "state" "now" "tone" "pend")
(dict "label" "Deleted" "date" (date .DeleteOn) "state" "next"))}}
{{template "rows" (list
(dict "k" "Instance" "v" .InstanceName)
(dict "k" "Current state" "v" "Read-only, licence expired")
(dict "k" "Deleted on" "v" (date .DeleteOn))
(dict "k" "Time left" "v" (plural .DaysLeft "day" "days")))}}
{{template "small" "Renewed in the last few minutes? No action is needed. Renewing moves the deletion date with the licence."}}
{{end}}
{{define "why"}}{{.InstanceName}} is scheduled for deletion and this is its billing contact.{{end}}