From 3f333678d8b1f73dd66dca9a1a390169aaebaac8 Mon Sep 17 00:00:00 2001 From: David Lu Date: Thu, 16 Jun 2016 05:44:02 -0700 Subject: PLT-2971 Added email footer for address (#3319) * Added email footer for address * added default * Update html.go * Changed according to PM --- utils/html.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils/html.go') diff --git a/utils/html.go b/utils/html.go index 7bb594e07..1df336c52 100644 --- a/utils/html.go +++ b/utils/html.go @@ -86,6 +86,13 @@ func (t *HTMLTemplate) addDefaultProps() { } t.Props["Footer"] = localT("api.templates.email_footer") + + if *Cfg.EmailSettings.FeedbackOrganization != "" { + t.Props["Organization"] = localT("api.templates.email_organization") + *Cfg.EmailSettings.FeedbackOrganization + } else { + t.Props["Organization"] = "" + } + t.Html["EmailInfo"] = template.HTML(localT("api.templates.email_info", map[string]interface{}{"SupportEmail": Cfg.SupportSettings.SupportEmail, "SiteName": Cfg.TeamSettings.SiteName})) } -- cgit v1.2.3-1-g7c22