Mercurial > gemma
comparison pkg/controllers/user.go @ 5372:5d6aa584b4fb extented-report
Streamlined the text templates for test emails.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 24 Jun 2021 14:13:14 +0200 |
parents | 566c8063223b |
children | 5f47eeea988d |
comparison
equal
deleted
inserted
replaced
5371:0de64b3017ac | 5372:5d6aa584b4fb |
---|---|
82 | 82 |
83 var ( | 83 var ( |
84 testSysadminNotifyMailTmpl = template.Must( | 84 testSysadminNotifyMailTmpl = template.Must( |
85 template.New("sysadmin").Parse(`Dear {{ .User }}, | 85 template.New("sysadmin").Parse(`Dear {{ .User }}, |
86 | 86 |
87 this is a test email for the Gemma System Errors notification service. You | 87 this is a test email from the Gemma System Errors notification service. You |
88 recieved this mail, because a System Administrator triggered the test mail | 88 recieved this mail, because a System Administrator triggered the test mail |
89 sending function at {{ .Timestamp }}. | 89 sending function at {{ .Timestamp }}. |
90 | 90 |
91 When a critical system error is detected an automated mail will be send to | 91 When a critical system error is detected an automated mail will be sent to |
92 the address: {{ .Email }} with details on the error condition.`)) | 92 {{ .Email }} with details on the error condition.`)) |
93 | 93 |
94 testWWAdminNotifyMailTmpl = template.Must( | 94 testWWAdminNotifyMailTmpl = template.Must( |
95 template.New("waterwayadmin").Parse(`Dear {{ .User }}, | 95 template.New("waterwayadmin").Parse(`Dear {{ .User }}, |
96 | 96 |
97 this is a test email for the Gemma System Mail notification service. You | 97 this is a test email from the Gemma System Mail notification service. You |
98 recieved this mail, because a System Administrator triggered the test mail | 98 recieved this mail, because a System Administrator triggered the test mail |
99 sending function at {{ .Timestamp }}. | 99 sending function at {{ .Timestamp }}. |
100 | 100 |
101 When the status of an data import managed by you changes an automated mail will | 101 When the status of a data import managed by you changes an automated mail will |
102 be send to the address: {{ .Email }} with details on the new import status | 102 be sent to {{ .Email }} with details on the new import status |
103 (including import errors) and details on the concerned import.`)) | 103 (including import errors) and details on the corresponding import.`)) |
104 | 104 |
105 testWWUserNotifyMailTmpl = template.Must( | 105 testWWUserNotifyMailTmpl = template.Must( |
106 template.New("waterwayuser").Parse(`Dear {{ .User }}, | 106 template.New("waterwayuser").Parse(`Dear {{ .User }}, |
107 | 107 |
108 this is a test email for the Gemma System Mail notification service. You | 108 this is a test email from the Gemma System Mail notification service. You |
109 recieved this mail, because a System Administrator triggered the test mail | 109 recieved this mail, because a System Administrator triggered the test mail |
110 sending function at {{ .Timestamp }}.`)) | 110 sending function at {{ .Timestamp }}.`)) |
111 ) | 111 ) |
112 | 112 |
113 func deleteUser(req *http.Request) (jr mw.JSONResult, err error) { | 113 func deleteUser(req *http.Request) (jr mw.JSONResult, err error) { |