Back to Peertube

User Notification Content.Component

client/src/app/shared/shared-notifications/user-notification-content.component.html

8.1.55.5 KB
Original Source

@switch (n.payload.type) { @case (1) { @if (n.payload.video) { {{ n.payload.video.channel.displayName }} published a new video: {{ n.payload.video.name }} } @else { The notification concerns a video now unavailable } } @case (5) { Your video {{ n.payload.video.name }} has been unblocked } @case (4) { Your video {{ n.payload.videoBlacklist.video.name }} has been blocked } @case (3) { @if (n.payload.abuse.video) { A new video abuse has been created on video {{ n.payload.abuse.video.name }} } @else if (n.payload.abuse.comment) { A new comment abuse has been created on video {{ n.payload.abuse.comment.video.name }} } @else if (n.payload.abuse.account) { A new account abuse has been created on account {{ n.payload.abuse.account.displayName }} } @else { A new abuse has been created } } @case (15) { @if (isAbuseAccepted(n)) { @if (n.payload.abuse.video) { Your report of the video {{ n.payload.abuse.video.name }} has been accepted } @else if (n.payload.abuse.comment) { Your report of the comment in the video {{ n.payload.abuse.comment.video.name }} has been accepted } @else if (n.payload.abuse.account) { Your report of the account {{ n.payload.abuse.account.displayName }} has been accepted } @else { Your report {{ n.payload.abuse.id }} has been accepted } } @else { @if (n.payload.abuse.video) { Your report of the video {{ n.payload.abuse.video.name }} has been rejected } @else if (n.payload.abuse.comment) { Your report of the comment in the video {{ n.payload.abuse.comment.video.name }} has been rejected } @else if (n.payload.abuse.account) { Your report of the account {{ n.payload.abuse.account.displayName }} has been rejected } @else { Your report {{ n.payload.abuse.id }} has been rejected } } } @case (16) { @if (n.payload.abuse.video) { Report of the video {{ n.payload.abuse.video.name }} has a new message } @else if (n.payload.abuse.comment) { Report of the comment in the video {{ n.payload.abuse.comment.video.name }} has a new message } @else if (n.payload.abuse.account) { Report of the account {{ n.payload.abuse.account.displayName }} has a new message } @else { Report {{ n.payload.abuse.id }} has a new message } } @case (12) { The recently added video {{ n.payload.videoBlacklist.video.name }} has been automatically blocked } @case (2) { @if (n.payload.comment) { {{ n.payload.comment.account.displayName }} commented your video {{ n.payload.comment.video.name }} @if (n.payload.comment.heldForReview) { This comment requires your approval } } @else { The notification concerns a comment now unavailable } } @case (6) { Your video {{ n.payload.video.name }} has been published } @case (7) { Your video import {{ n.videoImportIdentifier }} succeeded } @case (8) { Your video import {{ n.videoImportIdentifier }} failed } @case (9) { User {{ n.payload.account.name }} registered on your platform } @case (10) { @if (n.payload.actorFollow.following.type === 'channel') { {{ n.payload.actorFollow.follower.displayName }} is following your channel {{ n.payload.actorFollow.following.displayName }} } @else if (n.payload.actorFollow.following.type === 'account') { {{ n.payload.actorFollow.follower.displayName }} is following your account } } @case (11) { @if (n.payload.comment) { {{ n.payload.comment.account.displayName }} mentioned you on video {{ n.payload.comment.video.name }} } @else { The notification concerns a comment now unavailable } } @case (13) {

Your platform has a new follower: {{ n.followerHandle }} @if (n.payload.actorFollow?.state === 'pending') { It is awaiting your approval } } @case (14) { Your platform automatically followed {{ n.followingHandle }} } @case (17) { A new version of the plugin/theme {{ n.payload.plugin.name }} is available: {{ n.payload.plugin.latestVersion }} } @case (18) { A new version of PeerTube is available: {{ n.payload.peertube.latestVersion }} } @case (19) { The edits to your video {{ n.payload.video.name }} have been applied } @case (20) { User {{ n.payload.registration.username }} wants to register on your platform } @case (21) { @if (n.payload.video) { @if (isVideoPublished(n)) { {{ n.payload.video.channel.displayName }} is live streaming: {{ n.payload.video.name }} } @else { {{ n.payload.video.channel.displayName }} went live: {{ n.payload.video.name }} } } @else { The notification concerns a video now unavailable } } @case (22) { {{ n.payload.videoCaption.language.label }} transcription of your video {{ n.payload.videoCaption.video.name }} has been generated } @case (23) {

{{ n.payload.videoChannelCollaborator.channelOwner.displayName }} invited you to become an of their channel {{ n.payload.videoChannelCollaborator.channel.displayName }}

@if (isChannelCollabRejected(n)) {

Invitation declined

} @else if (isChannelCollabInvitation(n)) { AcceptDecline } @else if (isChannelCollabAccepted(n)) {

Invitation accepted

} } @case (24) { {{ n.payload.videoChannelCollaborator.account.displayName }} accepted your invitation to become an editor for your channel {{ n.payload.videoChannelCollaborator.channel.displayName }} } @case (25) { {{ n.payload.videoChannelCollaborator.account.displayName }} declined your invitation to become an editor for your channel {{ n.payload.videoChannelCollaborator.channel.displayName }} } @default { The notification points to content now unavailable } } {{ n.payload.createdAt | myFromNow }}