Browse Source

fix: tweak invite and verify e-mail templates (#8529)

pull/8535/head
Salim B 6 months ago committed by GitHub
parent
commit
9ed9ac5ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/nocodb/src/controllers/auth/ui/emailTemplates/invite.ts
  2. 4
      packages/nocodb/src/controllers/auth/ui/emailTemplates/verify.ts
  3. 6
      packages/nocodb/src/services/base-users/ui/emailTemplates/invite.ts
  4. 4
      packages/nocodb/src/services/base-users/ui/emailTemplates/verify.ts

6
packages/nocodb/src/controllers/auth/ui/emailTemplates/invite.ts

@ -132,8 +132,8 @@ export default `<!doctype html>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Hi,</p>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
I invited you to be "<%- roles -%>" of the NocoDB base "<%- baseName %>".
Click the button below to to accept my invitation.</p>
You have been invited to become "<%- roles -%>" of the NocoDB base "<%- baseName %>".
Click the button below to accept the invitation.</p>
<table role="presentation" border="0" cellpadding="0" cellspacing="0"
class="btn btn-primary"
style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; box-sizing: border-box; width: 100%;"
@ -161,7 +161,7 @@ export default `<!doctype html>
</tbody>
</table>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Thanks regards <%- adminEmail %>.</p>
Have a nice day,<br><%- adminEmail %></p>
</td>
</tr>
</table>

4
packages/nocodb/src/controllers/auth/ui/emailTemplates/verify.ts

@ -132,7 +132,7 @@ export default `<!doctype html>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Hi,</p>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Please verify your email address by clicking the following button.</p>
Please verify your e-mail address by clicking the following button.</p>
<table role="presentation" border="0" cellpadding="0" cellspacing="0"
class="btn btn-primary"
style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; box-sizing: border-box; width: 100%;"
@ -160,7 +160,7 @@ export default `<!doctype html>
</tbody>
</table>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Thanks regards NocoDB.</p>
Thank you and have a nice day,<br><%- adminEmail %></p>
</td>
</tr>
</table>

6
packages/nocodb/src/services/base-users/ui/emailTemplates/invite.ts

@ -132,8 +132,8 @@ export default `<!doctype html>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Hi,</p>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
I invited you to be "<%- roles -%>" of the NocoDB base "<%- baseName %>".
Click the button below to to accept my invitation.</p>
You have been invited to become "<%- roles -%>" of the NocoDB base "<%- baseName %>".
Click the button below to accept the invitation.</p>
<table role="presentation" border="0" cellpadding="0" cellspacing="0"
class="btn btn-primary"
style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; box-sizing: border-box; width: 100%;"
@ -161,7 +161,7 @@ export default `<!doctype html>
</tbody>
</table>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Thanks regards <%- adminEmail %>.</p>
Have a nice day,<br><%- adminEmail %></p>
</td>
</tr>
</table>

4
packages/nocodb/src/services/base-users/ui/emailTemplates/verify.ts

@ -132,7 +132,7 @@ export default `<!doctype html>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Hi,</p>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Please verify your email address by clicking the following button.</p>
Please verify your e-mail address by clicking the following button.</p>
<table role="presentation" border="0" cellpadding="0" cellspacing="0"
class="btn btn-primary"
style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; box-sizing: border-box; width: 100%;"
@ -160,7 +160,7 @@ export default `<!doctype html>
</tbody>
</table>
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">
Thanks regards NocoDB.</p>
Thank you and have a nice day,<br><%- adminEmail %>
</td>
</tr>
</table>

Loading…
Cancel
Save