mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
feat(emails): add support for weekly recap emails
This commit is contained in:
parent
c699fcde49
commit
37f7db3c4e
3 changed files with 10 additions and 1 deletions
|
|
@ -97,6 +97,7 @@
|
|||
"invitedParty": "Invited To Party",
|
||||
"invitedGuild": "Invited To Guild",
|
||||
"inactivityEmails": "Your account is inactive",
|
||||
"weeklyRecaps": "Summaries of your acccount activity in the past week",
|
||||
"questStarted": "Your Quest has Begun",
|
||||
"invitedQuest": "Invited to Quest",
|
||||
"kickedGroup": "Kicked from group",
|
||||
|
|
|
|||
|
|
@ -146,6 +146,8 @@ var UserSchema = new Schema({
|
|||
// Used to track the status of recapture emails sent to each user,
|
||||
// can be 0 - no email sent - 1, 2, 3 or 4 - 4 means no more email will be sent to the user
|
||||
recaptureEmailsPhase: {type: Number, 'default': 0},
|
||||
// Needed to track the tip to send inside the email
|
||||
weeklyRecapEmailsPhase: {type: Number, 'default': 0},
|
||||
communityGuidelinesAccepted: {type: Boolean, 'default': false},
|
||||
cronCount: {type:Number, 'default':0}
|
||||
},
|
||||
|
|
@ -328,7 +330,8 @@ var UserSchema = new Schema({
|
|||
invitedQuest: {type: Boolean, 'default': true},
|
||||
//remindersToLogin: {type: Boolean, 'default': true},
|
||||
// Those importantAnnouncements are in fact the recapture emails
|
||||
importantAnnouncements: {type: Boolean, 'default': true}
|
||||
importantAnnouncements: {type: Boolean, 'default': true},
|
||||
weeklyRecaps: {type: Boolean, 'default': true}
|
||||
}
|
||||
},
|
||||
profile: {
|
||||
|
|
|
|||
|
|
@ -325,6 +325,11 @@ script(id='partials/options.settings.notifications.html', type="text/ng-template
|
|||
input(type='checkbox', ng-disabled='user.preferences.emailNotifications.unsubscribeFromAll === true', ng-model='user.preferences.emailNotifications.importantAnnouncements', ng-change='set({"preferences.emailNotifications.importantAnnouncements": user.preferences.emailNotifications.importantAnnouncements ? true: false})')
|
||||
span=env.t('inactivityEmails')
|
||||
|
||||
.checkbox
|
||||
label
|
||||
input(type='checkbox', ng-disabled='user.preferences.emailNotifications.unsubscribeFromAll === true', ng-model='user.preferences.emailNotifications.weeklyRecaps', ng-change='set({"preferences.emailNotifications.weeklyRecaps": user.preferences.emailNotifications.weeklyRecaps ? true: false})')
|
||||
span=env.t('weeklyRecaps')
|
||||
|
||||
hr
|
||||
|
||||
.checkbox
|
||||
|
|
|
|||
Loading…
Reference in a new issue