[MM-30984] Change default footer for copyright in 2 emails (#16508)
* Change default footer for copyright in 2 emails * Change copyright date to 2020 * Add something back * Put back to 2020 Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
@@ -781,6 +781,8 @@ func (es *EmailService) SendPaymentFailedEmail(email string, locale string, fail
|
|||||||
bodyPage.Props["Button"] = T("api.templates.over_limit_fix_now")
|
bodyPage.Props["Button"] = T("api.templates.over_limit_fix_now")
|
||||||
bodyPage.Props["EmailUs"] = T("api.templates.email_us_anytime_at")
|
bodyPage.Props["EmailUs"] = T("api.templates.email_us_anytime_at")
|
||||||
|
|
||||||
|
bodyPage.Props["Footer"] = T("api.templates.copyright")
|
||||||
|
|
||||||
bodyPage.Props["FailedReason"] = failedPayment.FailureMessage
|
bodyPage.Props["FailedReason"] = failedPayment.FailureMessage
|
||||||
|
|
||||||
if err := es.sendMail(email, subject, bodyPage.Render()); err != nil {
|
if err := es.sendMail(email, subject, bodyPage.Render()); err != nil {
|
||||||
@@ -803,6 +805,8 @@ func (es *EmailService) SendNoCardPaymentFailedEmail(email string, locale string
|
|||||||
bodyPage.Props["Button"] = T("api.templates.payment_failed_no_card.button")
|
bodyPage.Props["Button"] = T("api.templates.payment_failed_no_card.button")
|
||||||
bodyPage.Props["EmailUs"] = T("api.templates.email_us_anytime_at")
|
bodyPage.Props["EmailUs"] = T("api.templates.email_us_anytime_at")
|
||||||
|
|
||||||
|
bodyPage.Props["Footer"] = T("api.templates.copyright")
|
||||||
|
|
||||||
if err := es.sendMail(email, subject, bodyPage.Render()); err != nil {
|
if err := es.sendMail(email, subject, bodyPage.Render()); err != nil {
|
||||||
return model.NewAppError("SendPaymentFailedEmail", "api.user.send_password_reset.send.app_error", nil, "err="+err.Message, http.StatusInternalServerError)
|
return model.NewAppError("SendPaymentFailedEmail", "api.user.send_password_reset.send.app_error", nil, "err="+err.Message, http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2608,7 +2608,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.copyright",
|
"id": "api.templates.copyright",
|
||||||
"translation": "© 2017 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
"translation": "© 2020 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.deactivate_body.info",
|
"id": "api.templates.deactivate_body.info",
|
||||||
|
|||||||
@@ -7987,7 +7987,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.copyright",
|
"id": "api.templates.copyright",
|
||||||
"translation": "© 2017 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
"translation": "© 2020 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.at_limit_title",
|
"id": "api.templates.at_limit_title",
|
||||||
|
|||||||
@@ -8000,7 +8000,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.copyright",
|
"id": "api.templates.copyright",
|
||||||
"translation": "© 2017 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
"translation": "© 2020 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.at_limit_title",
|
"id": "api.templates.at_limit_title",
|
||||||
|
|||||||
@@ -8132,7 +8132,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.copyright",
|
"id": "api.templates.copyright",
|
||||||
"translation": "© 2017 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
"translation": "© 2020 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.at_limit_title",
|
"id": "api.templates.at_limit_title",
|
||||||
|
|||||||
@@ -7893,7 +7893,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.copyright",
|
"id": "api.templates.copyright",
|
||||||
"translation": "© 2017 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
"translation": "© 2020 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.at_limit_title",
|
"id": "api.templates.at_limit_title",
|
||||||
|
|||||||
@@ -8068,7 +8068,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.copyright",
|
"id": "api.templates.copyright",
|
||||||
"translation": "© 2017 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
"translation": "© 2020 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.at_limit_title",
|
"id": "api.templates.at_limit_title",
|
||||||
|
|||||||
@@ -8019,7 +8019,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.copyright",
|
"id": "api.templates.copyright",
|
||||||
"translation": "© 2017 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
"translation": "© 2020 Mattermost, Inc. 855 El Camino Real, 13A-168, Palo Alto, CA, 94301"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "api.templates.at_limit_title",
|
"id": "api.templates.at_limit_title",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user