Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2892:13cd92b99d22 | 2895:92812bf2f008 |
---|---|
401 Email: string(userData.Email), | 401 Email: string(userData.Email), |
402 } | 402 } |
403 | 403 |
404 var bodyTmpl *template.Template | 404 var bodyTmpl *template.Template |
405 if userData.Role == "sys_admin" { | 405 if userData.Role == "sys_admin" { |
406 subject = "Sysadmin Notification TEST" | 406 subject = "Gemma: Sysadmin Notification TEST" |
407 bodyTmpl = testSysadminNotifyMailTmpl | 407 bodyTmpl = testSysadminNotifyMailTmpl |
408 } else if userData.Role == "waterway_admin" { | 408 } else if userData.Role == "waterway_admin" { |
409 subject = "Waterway Admin Notification TEST" | 409 subject = "Gemma: Waterway Admin Notification TEST" |
410 bodyTmpl = testWWAdminNotifyMailTmpl | 410 bodyTmpl = testWWAdminNotifyMailTmpl |
411 } else { | 411 } else { |
412 err = JSONError{ | 412 err = JSONError{ |
413 Code: http.StatusBadRequest, | 413 Code: http.StatusBadRequest, |
414 Message: "Test mails can only be generated for admin roles.", | 414 Message: "Test mails can only be generated for admin roles.", |