aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-10 15:56:13 +0100
committerChocobozzz <me@florianbigard.com>2020-11-10 15:56:13 +0100
commitb9cf3fb6381f71c976fbe515f728082d90a9c437 (patch)
tree4d9436c709c504c2c54145e53ddac963c6f96f3a /server/lib
parent10c8b0b743ae5aa7e89c7fe5745821278b71d52c (diff)
downloadPeerTube-b9cf3fb6381f71c976fbe515f728082d90a9c437.tar.gz
PeerTube-b9cf3fb6381f71c976fbe515f728082d90a9c437.tar.zst
PeerTube-b9cf3fb6381f71c976fbe515f728082d90a9c437.zip
Fix email footer
Do not include notif preferences in contact form email
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/emailer.ts5
-rw-r--r--server/lib/emails/common/base.pug25
2 files changed, 17 insertions, 13 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 6532fb4b4..708808cf2 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -606,7 +606,10 @@ class Emailer {
606 locals: { 606 locals: {
607 fromName, 607 fromName,
608 fromEmail, 608 fromEmail,
609 body 609 body,
610
611 // There are not notification preferences for the contact form
612 hideNotificationPreferences: true
610 } 613 }
611 } 614 }
612 615
diff --git a/server/lib/emails/common/base.pug b/server/lib/emails/common/base.pug
index b66a2a6d7..991cd5fbe 100644
--- a/server/lib/emails/common/base.pug
+++ b/server/lib/emails/common/base.pug
@@ -199,7 +199,7 @@ body(width="100%" style="margin: 0; padding: 0 !important; mso-line-height-rule:
199 td(width="40px") 199 td(width="40px")
200 img(src=`${WEBSERVER.URL}/client/assets/images/icons/icon-192x192.png` width="auto" height="30px" alt="" border="0" style="height: 30px; background: #ffffff; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555;") 200 img(src=`${WEBSERVER.URL}/client/assets/images/icons/icon-192x192.png` width="auto" height="30px" alt="" border="0" style="height: 30px; background: #ffffff; font-family: sans-serif; font-size: 15px; line-height: 15px; color: #555555;")
201 td 201 td
202 h1(style='margin: 10px 0 10px 0; font-family: sans-serif; font-size: 25px; line-height: 30px; color: #333333; font-weight: normal;') 202 h1(style='margin: 10px 0 10px 0; font-family: sans-serif; font-size: 25px; line-height: 30px; color: #333333; font-weight: normal;')
203 block title 203 block title
204 if title 204 if title
205 | #{title} 205 | #{title}
@@ -234,17 +234,18 @@ body(width="100%" style="margin: 0; padding: 0 !important; mso-line-height-rule:
234 //- 1 Column Text : END 234 //- 1 Column Text : END
235 //- Email Body : END 235 //- Email Body : END
236 //- Email Footer : BEGIN 236 //- Email Footer : BEGIN
237 table(align='center' role='presentation' cellspacing='0' cellpadding='0' border='0' width='100%' style='margin: auto;') 237 unless hideNotificationPreferences
238 tr 238 table(align='center' role='presentation' cellspacing='0' cellpadding='0' border='0' width='100%' style='margin: auto;')
239 td(style='padding: 20px; padding-bottom: 0px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;') 239 tr
240 webversion 240 td(style='padding: 20px; padding-bottom: 0px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;')
241 a.nocolor(href=`${WEBSERVER.URL}/my-account/notifications` style='color: #cccccc; font-weight: bold;') View in your notifications 241 webversion
242 br 242 a.nocolor(href=`${WEBSERVER.URL}/my-account/notifications` style='color: #cccccc; font-weight: bold;') View in your notifications
243 tr 243 br
244 td(style='padding: 20px; padding-top: 10px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;') 244 tr
245 unsubscribe 245 td(style='padding: 20px; padding-top: 10px; font-family: sans-serif; font-size: 12px; line-height: 15px; text-align: center; color: #888888;')
246 a.nocolor(href=`${WEBSERVER.URL}/my-account/settings#notifications` style='color: #888888;') Manage your notification preferences in your profile 246 unsubscribe
247 br 247 a.nocolor(href=`${WEBSERVER.URL}/my-account/settings#notifications` style='color: #888888;') Manage your notification preferences in your profile
248 br
248 //- Email Footer : END 249 //- Email Footer : END
249 //if mso 250 //if mso
250 //- Full Bleed Background Section : BEGIN 251 //- Full Bleed Background Section : BEGIN