aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/account/avatar.component.html
blob: 310cc926f51ac84a4c7f050f794da84584c36972 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="wrapper" [ngClass]="'avatar-' + size">
  <ng-container *ngIf="!isChannelAvatarNull() && !genericChannel">
    <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle">
      <img [src]="video.videoChannelAvatarUrl" i18n-alt alt="Channel avatar" />
    </a>
    <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle">
      <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" />
    </a>
  </ng-container>

  <ng-container *ngIf="!isChannelAvatarNull() && genericChannel">
    <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle">
      <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" />
    </a>

    <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle">
      <img [src]="video.videoChannelAvatarUrl" i18n-alt alt="Channel avatar" />
    </a>
  </ng-container>

  <ng-container *ngIf="isChannelAvatarNull()">
    <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle">
      <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" />
    </a>
  </ng-container>
</div>