summaryrefslogtreecommitdiffstats
path: root/utils/html.go
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-06-16 05:44:02 -0700
committerHarrison Healey <harrisonmhealey@gmail.com>2016-06-16 08:44:02 -0400
commit3f333678d8b1f73dd66dca9a1a390169aaebaac8 (patch)
treebf1f352535f02a2d37bed46870fcc469b5a3b2d0 /utils/html.go
parent4e38796e6964e22b61293568c85cea5e82c8e533 (diff)
downloadchat-3f333678d8b1f73dd66dca9a1a390169aaebaac8.tar.gz
chat-3f333678d8b1f73dd66dca9a1a390169aaebaac8.tar.bz2
chat-3f333678d8b1f73dd66dca9a1a390169aaebaac8.zip
PLT-2971 Added email footer for address (#3319)
* Added email footer for address * added default * Update html.go * Changed according to PM
Diffstat (limited to 'utils/html.go')
-rw-r--r--utils/html.go7
1 files changed, 7 insertions, 0 deletions
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}))
}