-
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: more appropriate email template structure (#437)
- Loading branch information
Showing
7 changed files
with
64 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 0 additions & 122 deletions
122
apps/nestjs-backend/src/features/mail-sender/templates/pages/collaborator-cell-tag.hbs
This file was deleted.
Oops, something went wrong.
112 changes: 0 additions & 112 deletions
112
apps/nestjs-backend/src/features/mail-sender/templates/pages/collaborator-multi-row-tag.hbs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
apps/nestjs-backend/src/features/mail-sender/templates/partials/collaborator-cell-tag.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<tr> | ||
<td style="padding: 30px; text-align: center;"> | ||
<p style="margin: 18px 0;"> | ||
<strong>{{fromUserName}}</strong> added you to the <strong>{{fieldName}}</strong> field of a | ||
record | ||
in | ||
<strong>{{tableName}}</strong>. | ||
</p> | ||
<a | ||
href="{{viewRecordUrlPrefix}}?recordId={{lookup recordIds 0}}&fromNotify={{notifyId}}" | ||
class="button" | ||
style=" | ||
padding: 12px 24px; | ||
margin: 20px 0; | ||
background-color: rgb(24, 24, 27); | ||
color: rgb(250, 250, 250); | ||
border-radius: 5px; | ||
text-decoration: none; | ||
font-weight: bold; | ||
display: inline-block; | ||
" | ||
>View record | ||
</a> | ||
</td> | ||
</tr> |
19 changes: 19 additions & 0 deletions
19
...nestjs-backend/src/features/mail-sender/templates/partials/collaborator-multi-row-tag.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<tr> | ||
<td style="padding: 30px; text-align: center;"> | ||
<p style="margin: 18px 0;"> | ||
<strong>{{fromUserName}}</strong> added you to {{refLength}} records in | ||
<strong>{{tableName}}</strong>: | ||
</p> | ||
{{#each recordIds}} | ||
The <strong>{{../fieldName}}</strong> field of a record: | ||
<a | ||
href="{{../viewRecordUrlPrefix}}?recordId={{this}}&fromNotify={{../notifyId}}" | ||
target="_blank" | ||
style="color:#3276dc" | ||
>{{../viewRecordUrlPrefix}}?recordId={{this}}&fromNotify={{../notifyId}} | ||
</a> | ||
<br> | ||
<br> | ||
{{/each}} | ||
</td> | ||
</tr> |
11 changes: 11 additions & 0 deletions
11
apps/nestjs-backend/src/features/mail-sender/templates/partials/invite.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<tr> | ||
<td style="padding: 30px; text-align: center;"> | ||
<h2 style="margin: 0;">Invitation to Collaborate</h2> | ||
<p style="margin: 18px 0;"><strong>{{name}}</strong> ({{email}}) has invited you to | ||
collaborate | ||
on their space <strong>{{spaceName}}</strong>.</p> | ||
<a href="{{inviteUrl}}" class="button" | ||
style="background-color: rgb(24, 24, 27); color: rgb(250, 250, 250); padding: 12px 24px; border-radius: 5px; text-decoration: none; font-weight: bold; display: inline-block; margin: 20px 0;">Accept | ||
Invitation</a> | ||
</td> | ||
</tr> |