Changing email notifications to use permalinks (#3399)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ed75dfc6c0
Коммит
422e12c364
@@ -692,7 +692,7 @@ func sendNotificationEmail(c *Context, post *model.Post, user *model.User, chann
|
|||||||
bodyPage := utils.NewHTMLTemplate("post_body", user.Locale)
|
bodyPage := utils.NewHTMLTemplate("post_body", user.Locale)
|
||||||
bodyPage.Props["SiteURL"] = c.GetSiteURL()
|
bodyPage.Props["SiteURL"] = c.GetSiteURL()
|
||||||
bodyPage.Props["PostMessage"] = model.ClearMentionTags(post.Message)
|
bodyPage.Props["PostMessage"] = model.ClearMentionTags(post.Message)
|
||||||
bodyPage.Props["TeamLink"] = teamURL + "/channels/" + channel.Name
|
bodyPage.Props["TeamLink"] = teamURL + "/pl/" + post.Id
|
||||||
bodyPage.Props["BodyText"] = bodyText
|
bodyPage.Props["BodyText"] = bodyText
|
||||||
bodyPage.Props["Button"] = userLocale("api.templates.post_body.button")
|
bodyPage.Props["Button"] = userLocale("api.templates.post_body.button")
|
||||||
bodyPage.Html["Info"] = template.HTML(userLocale("api.templates.post_body.info",
|
bodyPage.Html["Info"] = template.HTML(userLocale("api.templates.post_body.info",
|
||||||
|
|||||||
@@ -1429,7 +1429,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.post_body.button",
|
"id": "api.templates.post_body.button",
|
||||||
"translation": "Go To Channel"
|
"translation": "Go To Post"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.post_body.info",
|
"id": "api.templates.post_body.info",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user