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