]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html
adapt notifications buttons for small screens
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-notifications / my-account-notifications.component.html
CommitLineData
c9e3565d 1<h1 class="sr-only" i18n>Notifications</h1>
2f1548fd 2<div class="header">
457bb213 3 <a routerLink="/my-account/settings" fragment="notifications" i18n>
6ad971d5 4 <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
457bb213
C
5 Notification preferences
6 </a>
2f1548fd 7
225a7682 8 <div class="peertube-select-container peertube-select-button ml-2 mr-2">
4f5d0459 9 <select [(ngModel)]="notificationSortType" (ngModelChange)="onChangeSortColumn()" class="form-control">
654a188f 10 <option value="undefined" disabled>Sort by</option>
4f5d0459
RK
11 <option value="createdAt" i18n>Newest first</option>
12 <option value="read" [disabled]="!hasUnreadNotifications()" i18n>Unread first</option>
654a188f
RK
13 </select>
14 </div>
15
16 <button class="btn ml-auto" [disabled]="!hasUnreadNotifications()" (click)="markAllAsRead()">
bc6f8863 17 <ng-container *ngIf="hasUnreadNotifications()">
6ad971d5 18 <my-global-icon iconName="inbox-full" aria-hidden="true"></my-global-icon>
10475dea 19
bc6f8863
C
20 <span i18n>Mark all as read</span>
21 </ng-container>
22
23 <ng-container *ngIf="!hasUnreadNotifications()">
6ad971d5 24 <my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
bc6f8863
C
25
26 <span i18n>All read</span>
27 </ng-container>
457bb213 28 </button>
2f1548fd
C
29</div>
30
31<my-user-notifications #userNotification></my-user-notifications>