diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-20 17:00:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-07-20 17:00:58 +0200 |
commit | ec903c010ecc54ec2acad0bf2cf10e7fbf6a0fa2 (patch) | |
tree | 255a1f176f5f18a9205d2c7c8ce5f562f0e5ab31 /client/src/app/+search/search.component.html | |
parent | 677ea3c084508a1c3949b9f4b3da3c21bac8ff52 (diff) | |
parent | 2170f1db6ee40531f9d08b711d8b7b00254c0031 (diff) | |
download | PeerTube-ec903c010ecc54ec2acad0bf2cf10e7fbf6a0fa2.tar.gz PeerTube-ec903c010ecc54ec2acad0bf2cf10e7fbf6a0fa2.tar.zst PeerTube-ec903c010ecc54ec2acad0bf2cf10e7fbf6a0fa2.zip |
Merge branch 'release/2.3.0' into develop
Diffstat (limited to 'client/src/app/+search/search.component.html')
-rw-r--r-- | client/src/app/+search/search.component.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/client/src/app/+search/search.component.html b/client/src/app/+search/search.component.html index 9bff024ad..84be4fb14 100644 --- a/client/src/app/+search/search.component.html +++ b/client/src/app/+search/search.component.html | |||
@@ -35,15 +35,27 @@ | |||
35 | 35 | ||
36 | <ng-container *ngFor="let result of results"> | 36 | <ng-container *ngFor="let result of results"> |
37 | <div *ngIf="isVideoChannel(result)" class="entry video-channel"> | 37 | <div *ngIf="isVideoChannel(result)" class="entry video-channel"> |
38 | <a [routerLink]="getChannelUrl(result)"> | 38 | <a *ngIf="!isExternalChannelUrl()" [routerLink]="getChannelUrl(result)"> |
39 | <img [src]="result.avatarUrl" alt="Avatar" /> | ||
40 | </a> | ||
41 | |||
42 | <a *ngIf="isExternalChannelUrl()" [href]="getChannelUrl(result)" target="_blank"> | ||
39 | <img [src]="result.avatarUrl" alt="Avatar" /> | 43 | <img [src]="result.avatarUrl" alt="Avatar" /> |
40 | </a> | 44 | </a> |
41 | 45 | ||
42 | <div class="video-channel-info"> | 46 | <div class="video-channel-info"> |
43 | <a [routerLink]="getChannelUrl(result)" class="video-channel-names"> | 47 | <a *ngIf="!isExternalChannelUrl()" [routerLink]="getChannelUrl(result)" class="video-channel-names"> |
48 | <ng-container *ngTemplateOutlet="aContent"></ng-container> | ||
49 | </a> | ||
50 | |||
51 | <a *ngIf="isExternalChannelUrl()" [href]="getChannelUrl(result)" target="_blank" class="video-channel-names"> | ||
52 | <ng-container *ngTemplateOutlet="aContent"></ng-container> | ||
53 | </a> | ||
54 | |||
55 | <ng-template #aContent> | ||
44 | <div class="video-channel-display-name">{{ result.displayName }}</div> | 56 | <div class="video-channel-display-name">{{ result.displayName }}</div> |
45 | <div class="video-channel-name">{{ result.nameWithHost }}</div> | 57 | <div class="video-channel-name">{{ result.nameWithHost }}</div> |
46 | </a> | 58 | </ng-template> |
47 | 59 | ||
48 | <div i18n class="video-channel-followers">{{ result.followersCount }} subscribers</div> | 60 | <div i18n class="video-channel-followers">{{ result.followersCount }} subscribers</div> |
49 | </div> | 61 | </div> |
@@ -54,7 +66,7 @@ | |||
54 | <div *ngIf="isVideo(result)" class="entry video"> | 66 | <div *ngIf="isVideo(result)" class="entry video"> |
55 | <my-video-miniature | 67 | <my-video-miniature |
56 | [video]="result" [user]="userMiniature" [displayAsRow]="true" [displayVideoActions]="!hideActions()" | 68 | [video]="result" [user]="userMiniature" [displayAsRow]="true" [displayVideoActions]="!hideActions()" |
57 | [displayOptions]="videoDisplayOptions" [useLazyLoadUrl]="advancedSearch.searchTarget === 'search-index'" | 69 | [displayOptions]="videoDisplayOptions" [videoLinkType]="getVideoLinkType()" |
58 | (videoBlocked)="removeVideoFromArray(result)" (videoRemoved)="removeVideoFromArray(result)" | 70 | (videoBlocked)="removeVideoFromArray(result)" (videoRemoved)="removeVideoFromArray(result)" |
59 | ></my-video-miniature> | 71 | ></my-video-miniature> |
60 | </div> | 72 | </div> |