diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-07-24 08:49:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 08:49:59 +0200 |
commit | b40a219338fed042072decea203838ca5e2b265f (patch) | |
tree | fe52c722d48e7d8920118d1e2e78e7f96a995e67 /client/src/app/shared/shared-main/account/avatar.component.html | |
parent | e13d7ae45c4f30f0146edfba3674d8ef0eccac99 (diff) | |
download | PeerTube-b40a219338fed042072decea203838ca5e2b265f.tar.gz PeerTube-b40a219338fed042072decea203838ca5e2b265f.tar.zst PeerTube-b40a219338fed042072decea203838ca5e2b265f.zip |
Hide generic channel display name and avatar on watch view (#2988)
* Hide generic channel display name on watch view
* Hide generic channel avatar on watch view
* Add Default username channel as a generic channel display-name
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/app/shared/shared-main/account/avatar.component.html')
-rw-r--r-- | client/src/app/shared/shared-main/account/avatar.component.html | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-main/account/avatar.component.html b/client/src/app/shared/shared-main/account/avatar.component.html index 09871fca4..310cc926f 100644 --- a/client/src/app/shared/shared-main/account/avatar.component.html +++ b/client/src/app/shared/shared-main/account/avatar.component.html | |||
@@ -1,8 +1,26 @@ | |||
1 | <div class="wrapper" [ngClass]="'avatar-' + size"> | 1 | <div class="wrapper" [ngClass]="'avatar-' + size"> |
2 | <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle"> | 2 | <ng-container *ngIf="!isChannelAvatarNull() && !genericChannel"> |
3 | <img [src]="video.videoChannelAvatarUrl" i18n-alt alt="Channel avatar" /> | 3 | <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle"> |
4 | </a> | 4 | <img [src]="video.videoChannelAvatarUrl" i18n-alt alt="Channel avatar" /> |
5 | <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle"> | 5 | </a> |
6 | <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" /> | 6 | <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle"> |
7 | </a> | 7 | <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" /> |
8 | </a> | ||
9 | </ng-container> | ||
10 | |||
11 | <ng-container *ngIf="!isChannelAvatarNull() && genericChannel"> | ||
12 | <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle"> | ||
13 | <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" /> | ||
14 | </a> | ||
15 | |||
16 | <a [routerLink]="[ '/video-channels', video.byVideoChannel ]" [title]="channelLinkTitle"> | ||
17 | <img [src]="video.videoChannelAvatarUrl" i18n-alt alt="Channel avatar" /> | ||
18 | </a> | ||
19 | </ng-container> | ||
20 | |||
21 | <ng-container *ngIf="isChannelAvatarNull()"> | ||
22 | <a [routerLink]="[ '/accounts', video.byAccount ]" [title]="accountLinkTitle"> | ||
23 | <img [src]="video.accountAvatarUrl" i18n-alt alt="Account avatar" /> | ||
24 | </a> | ||
25 | </ng-container> | ||
8 | </div> | 26 | </div> |