aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/menu/avatar-notification.component.html
blob: a5ef43d42ab2ab817383ece6d0f1bf61f5d3b6bc (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                                                                                             
                                                                                                                           






                                                                                                   


                                                      
 








                                                                                               
 



                                                                          
 

                                                                                                                          
              
<div
  [ngbPopover]="popContent" autoClose="outside" placement="bottom-left" container="body" popoverClass="popover-notifications"
  i18n-title title="View your notifications" class="notification-avatar" #popover="ngbPopover" (hidden)="onPopoverHidden()"
>
  <div *ngIf="unreadNotifications > 0" class="unread-notifications">{{ unreadNotifications }}</div>

  <img [src]="user.accountAvatarUrl" alt="Avatar" />
</div>

<ng-template #popContent>
  <div class="content" [ngClass]="{ loaded: loaded }">
    <div class="notifications-header">
      <div i18n>Notifications</div>

      <a
        i18n-title title="Update your notification preferences" class="glyphicon glyphicon-cog"
        routerLink="/my-account/settings" fragment="notifications"
      ></a>
    </div>

    <div *ngIf="!loaded" class="loader">
      <my-loader [loading]="!loaded"></my-loader>
    </div>

    <my-user-notifications
      [ignoreLoadingBar]="true" [infiniteScroll]="false" itemsPerPage="10"
      (notificationsLoaded)="onNotificationLoaded()"
    ></my-user-notifications>

    <a *ngIf="loaded" class="all-notifications" routerLink="/my-account/notifications" i18n>See all your notifications</a>
  </div>
</ng-template>