-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
5 changed files
with
57 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 24 additions & 6 deletions
30
client/src/app/shared/shared-main/account/avatar.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
<div class="wrapper" [ngClass]="'avatar-' + size"> | ||
<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 *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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters