Move email templates in assets directory

This commit is contained in:
Chocobozzz
2024-03-20 09:15:07 +01:00
parent b4169fe0a4
commit be19d9be34
31 changed files with 2 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ Some of these may be optional (for example your new endpoint may not need to sen
- Create the notification logic in `server/core/lib/notifier/shared`:
+ Email subject has a common prefix (defined by the admin in PeerTube configuration)
- Add your notification to `server/core/lib/notifier/notifier.ts`
- Create the email template in `server/core/lib/emails`:
- Create the email template in `server/core/assets/email-templates`:
+ A text version is automatically generated from the HTML
+ The template usually extends `../common/grettings` that already says "Hi" and "Cheers". You just have to write the title and the content blocks that will be inserted in the appropriate places in the HTML template
- If you need to associate a new table with `userNotification`: