Change body info from String to HTML
Этот коммит содержится в:
@@ -18,7 +18,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border-bottom: 1px solid #ddd; padding: 0 0 20px;">
|
<td style="border-bottom: 1px solid #ddd; padding: 0 0 20px;">
|
||||||
<h2 style="font-weight: normal; margin-top: 10px;">{{.Props.Title}}</h2>
|
<h2 style="font-weight: normal; margin-top: 10px;">{{.Props.Title}}</h2>
|
||||||
<p>{{.Props.Info}}</p>
|
<p>{{.Html.Info}}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -1767,7 +1767,7 @@ func sendEmailChangeEmailAndForget(c *Context, oldEmail, newEmail, teamDisplayNa
|
|||||||
bodyPage := NewServerTemplatePage("email_change_body", c.Locale)
|
bodyPage := NewServerTemplatePage("email_change_body", c.Locale)
|
||||||
bodyPage.Props["SiteURL"] = siteURL
|
bodyPage.Props["SiteURL"] = siteURL
|
||||||
bodyPage.Props["Title"] = c.T("api.templates.email_change_body.title")
|
bodyPage.Props["Title"] = c.T("api.templates.email_change_body.title")
|
||||||
bodyPage.Props["Info"] = c.T("api.templates.email_change_body.info",
|
bodyPage.Html["Info"] = c.T("api.templates.email_change_body.info",
|
||||||
map[string]interface{}{"TeamDisplayName": teamDisplayName, "NewEmail": newEmail})
|
map[string]interface{}{"TeamDisplayName": teamDisplayName, "NewEmail": newEmail})
|
||||||
|
|
||||||
if err := utils.SendMail(oldEmail, subjectPage.Render(), bodyPage.Render()); err != nil {
|
if err := utils.SendMail(oldEmail, subjectPage.Render(), bodyPage.Render()); err != nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user