feat: Changes to self hosted purchase

This commit is contained in:
2026-08-11 09:30:19 +01:00
parent 3acbf01d46
commit a228ab24a0
20 changed files with 150 additions and 433 deletions
-8
View File
@@ -71,11 +71,3 @@ func (s Sender) SendDeletionWarning(to, instanceName, portalURL string, deleteOn
DeleteOn time.Time
}{instanceName, portalURL, when, deleteOn})
}
// SendLinkReminder chases a self-hosted customer who paid but never linked.
func (s Sender) SendLinkReminder(to, instanceName string) error {
return s.sendTemplate(to, "", "linkreminder", struct {
InstanceName string
PortalURL string
}{instanceName, s.PublicURL})
}
@@ -1,7 +0,0 @@
{{define "pill"}}{{template "chip" (dict "label" "Action needed" "tone" "pend")}}{{end}}
{{define "title"}}Finish setting up {{.InstanceName}}{{end}}
{{define "body"}}
{{template "lead" (printf "Your subscription for %s is active, but the instance is not linked yet." .InstanceName)}}
{{template "p" "Paste your install's ID in the portal to receive your licence."}}
{{if .PortalURL}}{{template "button" (dict "label" "Link my install" "url" .PortalURL)}}{{end}}
{{end}}
@@ -1,8 +0,0 @@
{{define "subject"}}Finish setting up {{.InstanceName}}{{end}}
{{define "pill"}}{{template "chip" (dict "label" "Action needed" "tone" "pend")}}{{end}}
{{define "title"}}Finish setting up {{.InstanceName}}{{end}}
{{define "body"}}
{{template "lead" (printf "Your subscription for %s is active, but the instance is not linked yet." .InstanceName)}}
{{template "p" "Paste your install's ID in the portal to receive your licence."}}
{{if .PortalURL}}{{template "button" (dict "label" "Link my install" "url" .PortalURL)}}{{end}}
{{end}}