Mercurial > gemma
diff pkg/controllers/user.go @ 2895:92812bf2f008
Improve notification email contents
* Add "Gemma: " to the email subject lines so they stand out better
in the inbox. As the body of some emails already has "Gemma" hardcoded,
this is consistent.
* Fix formatting in the import notification emails to have a space
between ending of the status sentence and the next sentence.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 02 Apr 2019 12:58:11 +0200 |
parents | 7cf8a276a80c |
children | 07d853f9bf47 |
line wrap: on
line diff
--- a/pkg/controllers/user.go Tue Apr 02 12:02:57 2019 +0200 +++ b/pkg/controllers/user.go Tue Apr 02 12:58:11 2019 +0200 @@ -403,10 +403,10 @@ var bodyTmpl *template.Template if userData.Role == "sys_admin" { - subject = "Sysadmin Notification TEST" + subject = "Gemma: Sysadmin Notification TEST" bodyTmpl = testSysadminNotifyMailTmpl } else if userData.Role == "waterway_admin" { - subject = "Waterway Admin Notification TEST" + subject = "Gemma: Waterway Admin Notification TEST" bodyTmpl = testWWAdminNotifyMailTmpl } else { err = JSONError{