]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/menu/notification.component.html
Merge branch 'release/4.0.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / notification.component.html
CommitLineData
2f1548fd 1<div
51a83970
K
2 [ngbPopover]="popContent" autoClose="outside" placement="bottom" container={this} popoverClass="popover-notifications"
3 i18n-title title="View your notifications" [ngClass]="{ 'notification-inbox-popover': true, 'shown': opened, 'hidden': isInMobileView }"
4 #popover="ngbPopover" (shown)="onPopoverShown()" (hidden)="onPopoverHidden()"
2f1548fd
C
5>
6 <div *ngIf="unreadNotifications > 0" class="unread-notifications">{{ unreadNotifications }}</div>
7
51a83970
K
8 <my-global-icon iconName="bell"></my-global-icon>
9</div>
10
11<div *ngIf="isInMobileView" i18n-title title="View your notifications" class="notification-inbox-link">
12 <div *ngIf="unreadNotifications > 0" class="unread-notifications">{{ unreadNotifications }}</div>
13
14 <a routerLink="/my-account/notifications" routerLinkActive="active" #link (click)="onNavigate(link)">
15 <my-global-icon iconName="bell"></my-global-icon>
16 </a>
2f1548fd
C
17</div>
18
19<ng-template #popContent>
b28e4e5e
C
20 <div class="content" [ngClass]="{ loaded: loaded }">
21 <div class="notifications-header">
22 <div i18n>Notifications</div>
2f1548fd 23
10475dea
RK
24 <div>
25 <button
26 *ngIf="unreadNotifications"
51a83970 27 i18n-title title="Mark all as read" class="glyphicon glyphicon-ok mr-2"
10475dea
RK
28 (click)="markAllAsRead()"
29 ></button>
30 <a
31 i18n-title title="Update your notification preferences" class="glyphicon glyphicon-cog"
32 routerLink="/my-account/settings" fragment="notifications"
30d55e75 33 #settingsNotifications (click)="onNavigate(settingsNotifications)"
10475dea
RK
34 ></a>
35 </div>
b28e4e5e
C
36 </div>
37
223b24e6 38 <div *ngIf="!loaded" class="loader mt-4">
b28e4e5e
C
39 <my-loader [loading]="!loaded"></my-loader>
40 </div>
2f1548fd 41
b28e4e5e 42 <my-user-notifications
be27ef3b 43 [ignoreLoadingBar]="true" [infiniteScroll]="false" [itemsPerPage]="10"
bc6f8863 44 [markAllAsReadSubject]="markAllAsReadSubject" (notificationsLoaded)="onNotificationLoaded()"
b28e4e5e 45 ></my-user-notifications>
2f1548fd 46
30d55e75 47 <a *ngIf="loaded" class="all-notifications" routerLink="/my-account/notifications" #notifications (click)="onNavigate(notifications)">
51a83970 48 <my-global-icon class="mr-1" iconName="bell" aria-hidden="true"></my-global-icon>
10475dea
RK
49 <span i18n>See all your notifications</span>
50 </a>
b28e4e5e 51 </div>
2f1548fd 52</ng-template>