]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/menu/avatar-notification.component.html
Fix user dropdown menu with long texts
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / avatar-notification.component.html
1 <div
2 [ngbPopover]="popContent" autoClose="outside" placement="bottom-left" container="body" popoverClass="popover-notifications"
3 i18n-title title="View your notifications" class="notification-avatar" #popover="ngbPopover" (hidden)="onPopoverHidden()"
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>
11 <div class="content" [ngClass]="{ loaded: loaded }">
12 <div class="notifications-header">
13 <div i18n>Notifications</div>
14
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"
24 ></a>
25 </div>
26 </div>
27
28 <div *ngIf="!loaded" class="loader mt-4">
29 <my-loader [loading]="!loaded"></my-loader>
30 </div>
31
32 <my-user-notifications
33 [ignoreLoadingBar]="true" [infiniteScroll]="false" [itemsPerPage]="10"
34 [markAllAsReadSubject]="markAllAsReadSubject" (notificationsLoaded)="onNotificationLoaded()"
35 ></my-user-notifications>
36
37 <a *ngIf="loaded" class="all-notifications" routerLink="/my-account/notifications">
38 <my-global-icon class="mr-1" iconName="inbox-full"></my-global-icon>
39 <span i18n>See all your notifications</span>
40 </a>
41 </div>
42 </ng-template>