mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 04:25:46 +08:00
feat: added featured comment notifications (#2524)
This commit is contained in:
@@ -36,7 +36,19 @@ export type OnStaffReplyTemplate = NotificationContext<
|
||||
}
|
||||
>;
|
||||
|
||||
export type DigestibleTemplate = OnReplyTemplate | OnStaffReplyTemplate;
|
||||
export type OnFeaturedTemplate = NotificationContext<
|
||||
"notification/on-featured",
|
||||
{
|
||||
storyTitle: string;
|
||||
storyURL: string;
|
||||
commentPermalink: string;
|
||||
}
|
||||
>;
|
||||
|
||||
export type DigestibleTemplate =
|
||||
| OnReplyTemplate
|
||||
| OnStaffReplyTemplate
|
||||
| OnFeaturedTemplate;
|
||||
|
||||
type DigestTemplate = NotificationContext<
|
||||
"notification/digest",
|
||||
@@ -174,6 +186,7 @@ type Templates =
|
||||
| AccountDeletionCompleted
|
||||
| OnReplyTemplate
|
||||
| OnStaffReplyTemplate
|
||||
| OnFeaturedTemplate
|
||||
| DigestTemplate;
|
||||
|
||||
export { Templates as EmailTemplate };
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{% extends "layouts/notification.html" %}
|
||||
@@ -0,0 +1,4 @@
|
||||
<div data-l10n-id="email-template-notificationOnFeatured" data-l10n-args="{{ context | dump }}">
|
||||
{{ context.organizationName }} - <a data-l10n-name="storyLink" href="{{ context.storyURL }}">{{ context.storyTitle }}</a><br /><br/>
|
||||
A member of our team has selected this comment to be featured for other readers: <a data-l10n-name="commentPermalink" href="{{ context.commentPermalink }}">View comment</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user