# HG changeset patch # User Thomas Junk # Date 1624536794 -7200 # Node ID 5d6aa584b4fb00f0ff6853c0516b45049294c475 # Parent 0de64b3017acd1240f9ad2694d6a32184260bc4b Streamlined the text templates for test emails. diff -r 0de64b3017ac -r 5d6aa584b4fb pkg/controllers/user.go --- a/pkg/controllers/user.go Thu Jun 24 14:04:47 2021 +0200 +++ b/pkg/controllers/user.go Thu Jun 24 14:13:14 2021 +0200 @@ -84,28 +84,28 @@ testSysadminNotifyMailTmpl = template.Must( template.New("sysadmin").Parse(`Dear {{ .User }}, -this is a test email for the Gemma System Errors notification service. You +this is a test email from the Gemma System Errors notification service. You recieved this mail, because a System Administrator triggered the test mail sending function at {{ .Timestamp }}. -When a critical system error is detected an automated mail will be send to -the address: {{ .Email }} with details on the error condition.`)) +When a critical system error is detected an automated mail will be sent to +{{ .Email }} with details on the error condition.`)) testWWAdminNotifyMailTmpl = template.Must( template.New("waterwayadmin").Parse(`Dear {{ .User }}, -this is a test email for the Gemma System Mail notification service. You +this is a test email from the Gemma System Mail notification service. You recieved this mail, because a System Administrator triggered the test mail sending function at {{ .Timestamp }}. -When the status of an data import managed by you changes an automated mail will -be send to the address: {{ .Email }} with details on the new import status -(including import errors) and details on the concerned import.`)) +When the status of a data import managed by you changes an automated mail will +be sent to {{ .Email }} with details on the new import status +(including import errors) and details on the corresponding import.`)) testWWUserNotifyMailTmpl = template.Must( template.New("waterwayuser").Parse(`Dear {{ .User }}, -this is a test email for the Gemma System Mail notification service. You +this is a test email from the Gemma System Mail notification service. You recieved this mail, because a System Administrator triggered the test mail sending function at {{ .Timestamp }}.`)) )