diff --git email_content.template.digest_notification.text email_content.template.digest_notification.text index 0a19856c5f8..e5288b2e12e 100644 --- email_content.template.digest_notification.text +++ email_content.template.digest_notification.text @@ -1,567 +1,578 @@ == .subject ================================================================== ${community.title} Community: ${digest.frequency} Digest == .text_content ================================================================== Hello ${recipient.login}, You have ${digest.totalUpdates} new subscriptions & activity updates in the ${community.title} Community. #foreach ($subscription in $digest.subscriptions) ----------------------------------------------------------------------------------- ${subscription.typeTitle}: ${subscription.title} (${subscription.updateCountTitle}) #foreach ($notification in $subscription.notifications) #set ( $clauseCount = 0 ) #set ($initialDraft = "") #if ($notification.initialDraft) #set ( $initialDraft = "a new draft was created" ) #set ( $clauseCount = $clauseCount + 1 ) #end #set ($reviewRequests = "") #if ($notification.editRequestSave) #if ($notification.editRequestSaveCount > 1) #set ( $reviewRequests = "${notification.editRequestSaveCount} requests for review" ) #set ( $clauseCount = $clauseCount + 1 ) #else #set ( $reviewRequests = "1 request for review" ) #set ( $clauseCount = $clauseCount + 1 ) #end #end #set ($publishRequests = "") #if ($notification.publishRequestSave) #if ($notification.publishRequestSaveCount > 1) #set ( $publishRequests = "${notification.publishRequestSaveCount} requests for publication" ) #set ( $clauseCount = $clauseCount + 1 ) #else #set ( $publishRequests = "1 request for publication" ) #set ( $clauseCount = $clauseCount + 1 ) #end #end #set ( $unpublishedRevisions = "" ) #if ($notification.save) #if (!$notification.publish) #set ($draftCount = $notification.saveCount - $notification.publishCount) #if ($draftCount > 1) #if ($notification.initialDraft) #set ( $draftCount = $draftCount - 1 ) #end #set ( $unpublishedRevisions = "${draftCount} unpublished revisions" ) #set ( $clauseCount = $clauseCount + 1 ) #elseif (!$notification.initialDraft) #set ( $unpublishedRevisions = "1 unpublished revision" ) #set ( $clauseCount = $clauseCount + 1 ) #end #end #end #set ($newlyVisible = "") #if ($notification.newlyVisible) #set ( $newlyVisible= "a new publication" ) #if ($notification.moved) #if ($notification.merged) #set ( $merged = "true") #else #set ( $moved = "true" ) #end #else #set ( $newPublication = "true" ) #end #set ( $clauseCount = $clauseCount + 1 ) #end #set ($publishedRevisions = "") +#set ( $updatedProductTag = "" ) #if ($notification.updatePublish) #if ($notification.updatePublishCount > 1) #set ( $publishedRevisions = "${notification.updatePublishCount} published revisions" ) #set ( $clauseCount = $clauseCount + 1 ) #else #set ( $publishedRevisions = "1 published revision" ) #set ( $clauseCount = $clauseCount + 1 ) #end +#if ( $notification.type.name == "product" ) +#set( $updatedProductTag = "true" ) +#end #end #set ($minorEdits = "") #if ($notification.minorSave) #if ($notification.minorSaveCount > 1) #set ( $minorEdits = "${notification.minorSaveCount} edits marked 'minor'" ) #set ( $clauseCount = $clauseCount + 1 ) #else #set ( $minorEdits = "1 edit marked 'minor'" ) #set ( $clauseCount = $clauseCount + 1 ) #end #end #set ( $revisionActivities = [$initialDraft, $reviewRequests, $publishRequests, $unpublishedRevisions, $newlyVisible, $publishedRevisions, $minorEdits] ) #set ( $phrase = "The following activities occurred on this ${notification.typeTitleLowerCase}: " ) #set ( $currentIndex = 1 ) #if ( $newPublication ) #set ( $phrase = "${notification.actor.login} posted a new ${notification.message.localizedObjectType} on ${notification.formattedPostDate}" ) #elseif ( $moved ) #set ( $phrase = "${notification.actor.login} moved a ${notification.message.localizedObjectType} on ${notification.formattedPostDate}" ) #elseif ( $merged ) #set ( $phrase = "${notification.actor.login} merged a ${notification.message.localizedObjectType} on ${notification.formattedPostDate}" ) +#elseif ( $updatedProductTag ) +#set ( $phrase = "${notification.actor.login} tagged a ${notification.message.localizedObjectType} with ${subscription.title} on ${notification.formattedEventDate}" ) #else #foreach ( $revisionActivity in $revisionActivities ) #if ( "$revisionActivity" != "") #if ( $clauseCount > 1 ) #if ( $currentIndex < $clauseCount) #set ( $phrase = "${phrase} ${revisionActivity}," ) #else #set ( $phrase = "${phrase} and ${revisionActivity}." ) #end #set ( $currentIndex = $currentIndex + 1 ) #else #set ( $phrase = "${phrase} ${revisionActivity}." ) #end #end #end #end - ${phrase} #if ($notification.showMessageBody) ${notification.message.webUi.url} Subject: ${tools.unescapeHtml($notification.message.subject)} ${notification.formattedBodyPlainText} #else Subject: ${tools.unescapeHtml($notification.message.subject)} You can view the body of the ${notification.typeTitleLowerCase} at the following URL: ${notification.message.webUi.url} #end #if ($digest.actionByEmail && $subscription.actionByEmail) #if ($notification.actions.canReplyByEmail) You can respond to the ${notification.typeTitleLowerCase} at the following URL: ${notification.actions.replyByEmailUrl} #end #if ($notification.actions.canMarkAsSolution) You can accept the solution to the ${notification.typeTitleLowerCase} at the following URL: ${notification.actions.markAsSolutionUrl} #end #if ($notification.actions.canGiveKudos) You can give kudos to the ${notification.typeTitleLowerCase} at the following URL: ${notification.actions.giveKudosUrl} #end #end #end #if ($subscription.exceededCount > 0) We skipped $subscription.exceededCount more #if ( $subscription.exceededCount > 1 ) updates #else update #end to keep this email short. To view all of the updates for a subscription please go your subscriptions here: ${userSubscriptionsPageUrl} #end #end #foreach ($badge in $digest.badges) ${badge.title} (${badge.updateCountTitle}) #foreach ($notification in $badge.notifications) ${notification.badge.title} #end View it on your profile: ${recipient.webUi.url} #end #foreach ($activity in $digest.activities) ----------------------------------------------------------------------------------- ${activity.typeTitle}: ${activity.title} (${activity.updateCountTitle}) #foreach ($notification in $activity.notifications) #set ($activityVerb = "") #if ($notification.type.name == "mentions") #set ($activityVerb = "mentioned you") #end #if ($notification.type.name == "kudos") #set ($activityVerb = "gave you kudos") #end ${notification.actor.login} ${activityVerb} in ${notification.message.board.title} on ${notification.formattedEventDate} #if ($notification.showMessageBody) ${notification.message.webUi.url} Subject: ${tools.unescapeHtml($notification.message.subject)} ${notification.formattedBodyPlainText} #else Subject: ${tools.unescapeHtml($notification.message.subject)} You can view the body of the ${notification.typeTitleLowerCase} at the following URL: ${notification.message.webUi.url} #end #if ($digest.actionByEmail && $activity.actionByEmail) #if ($notification.type.name == "mentions") #if ($notification.actions.canReplyByEmail) You can respond to the ${notification.typeTitleLowerCase} at the following URL: ${notification.actions.replyByEmailUrl} #end #if ($notification.actions.canGiveKudos) You can give kudos to the ${notification.typeTitleLowerCase} at the following URL: ${notification.actions.giveKudosUrl} #end #end #end #end #if ($activity.exceededCount > 0) We skipped $activity.exceededCount more #if ( $activity.exceededCount > 1 ) updates #else update #end to keep this email short. To view all of the updates for a subscription please go your subscriptions here: ${userSubscriptionsPageUrl} #end #end #foreach ($customNotificationType in $digest.customEventNotifications) ----------------------------------------------------------------------------------- ${customNotificationType.typeTitle}: ${customNotificationType.title} (${customNotificationType.updateCountTitle}) #foreach ($notification in $customNotificationType.notifications) ${notification.actor.login} triggered a ${customNotificationType.typeTitle} in ${notification.message.board.title} on ${notification.formattedPostDate} #if ($notification.showMessageBody) ${notification.message.webUi.url} Subject: ${notification.message.subject} ${notification.formattedBodyPlainText} #else Subject: ${notification.message.subject} You can view the body of the ${notification.typeTitleLowerCase} at the following URL: ${notification.message.webUi.url} #end #end #if ($customNotificationType.exceededCount > 0) We skipped $customNotificationType.exceededCount more #if ( $customNotificationType.exceededCount > 1 ) updates #else update #end to keep this email short. To view all of the updates for a subscription please go your subscriptions here: ${userSubscriptionsPageUrl} #end #end =================================================================================== ${community.title} sent this message to ${recipient.email} To control which emails we send you, manage your subscriptions and notifications here: ${userSubscriptionsPageUrl} or unsubscribe here: ${emailUrls.getTapestryUrl("/user/RemoveUserEmailPage/user-id/$user.id/mail-message-tracking/$trackingKey")} == .html_content ==================================================================
You have ${digest.totalUpdates} new subscriptions & activity updates in the ${community.title} Community.
#if ($badge.exceededCount > 0)
Hi ${notification.recipient.login},
- #set( $eventUser = "") - #set( $eventUserRanking = "") - #set( $eventText = "") - #set( $eventDetails = "") - - #if($notification.message.editRequestSave) - #set ( $eventDetails = "and has requested a review") - #elseif($notification.message.publishRequestSave) - #set ( $eventDetails = "and has requested it to be published") - #end - - #if ($notification.newlyVisible || !$notification.message.edited) - #set ( $eventUser = "${notification.message.author.login}") - #set ( $eventUserRanking = "${notification.message.author.ranking.name}") - #if ($notification.moved) - #if ($notification.merged) - #set ($eventText = "merged a") - #else - #set ($eventText = "moved a") - #end - #else - #set ( $eventText = "posted a new") - #end - #else - #set ( $eventUser = "${notification.message.lastEditUser.login}") - #set ( $eventUserRanking = "${notification.message.lastEditUser.ranking.name}") - #if ("${notification.message.board.discussionStyle}" == "tkb") - #set ( $eventText = "edited an") - #else - #set ( $eventText = "edited a") - #end - #end - - ${eventUser} (${eventUserRanking}) ${eventText} ${notification.message.localizedObjectType} in ${notification.message.board.title} on ${notification.formattedDateForMessageEdit} ${eventDetails}: + $templateHelper.getIntroText(false)
${notification.HTMLBody} #if(${notification.displayHTMLSignature})
${notification.authorHtmlSignature}
#end#if ($mailActions.canReplyByEmail) Reply #end #if ($mailActions.canMarkAsSolution) | Accept as Solution #end #if ($mailActions.canGiveKudos) | Give Kudos #end