]>
Commit | Line | Data |
---|---|---|
aa55a4da | 1 | <div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" class="search-result"> |
2c24b9d3 | 2 | <div class="results-header"> |
0b18f4aa | 3 | <div class="first-line"> |
2c24b9d3 C |
4 | <div class="results-counter" *ngIf="pagination.totalItems"> |
5 | <span i18n>{{ pagination.totalItems | myNumberFormatter }} results</span> | |
6 | <span *ngIf="currentSearch" i18n> | |
7 | for <span class="search-value">{{ currentSearch }}</span> | |
8 | </span> | |
0b18f4aa C |
9 | </div> |
10 | ||
11 | <div | |
f5d9558f | 12 | class="results-filter-button ml-auto" (click)="isSearchFilterCollapsed = !isSearchFilterCollapsed" role="button" |
8cd72bd3 | 13 | [attr.aria-expanded]="!isSearchFilterCollapsed" aria-controls="collapseBasic" |
0b18f4aa C |
14 | > |
15 | <span class="icon icon-filter"></span> | |
c5d04b4f RK |
16 | <ng-container i18n> |
17 | Filters | |
18 | <span *ngIf="numberOfFilters() > 0" class="badge badge-secondary">{{ numberOfFilters() }}</span> | |
19 | </ng-container> | |
0b18f4aa C |
20 | </div> |
21 | </div> | |
22 | ||
2f4c784a | 23 | <div class="results-filter collapse-transition" [ngbCollapse]="isSearchFilterCollapsed"> |
8cd72bd3 | 24 | <my-search-filters [advancedSearch]="advancedSearch" (filtered)="onFiltered()"></my-search-filters> |
0b18f4aa C |
25 | </div> |
26 | </div> | |
27 | ||
2d3741d6 | 28 | <div i18n *ngIf="pagination.totalItems === 0 && results.length === 0" class="no-results"> |
0b18f4aa | 29 | No results found |
57c36b27 C |
30 | </div> |
31 | ||
26fabbd6 C |
32 | <ng-container *ngFor="let result of results"> |
33 | <div *ngIf="isVideoChannel(result)" class="entry video-channel"> | |
34 | <a [routerLink]="[ '/video-channels', result.nameWithHost ]"> | |
35 | <img [src]="result.avatarUrl" alt="Avatar" /> | |
f37dc0dd C |
36 | </a> |
37 | ||
26fabbd6 C |
38 | <div class="video-channel-info"> |
39 | <a [routerLink]="[ '/video-channels', result.nameWithHost ]" class="video-channel-names"> | |
40 | <div class="video-channel-display-name">{{ result.displayName }}</div> | |
41 | <div class="video-channel-name">{{ result.nameWithHost }}</div> | |
42 | </a> | |
f37dc0dd | 43 | |
26fabbd6 C |
44 | <div i18n class="video-channel-followers">{{ result.followersCount }} subscribers</div> |
45 | </div> | |
f37dc0dd | 46 | |
41eb700f | 47 | <my-subscribe-button [videoChannels]="[result]"></my-subscribe-button> |
26fabbd6 | 48 | </div> |
57c36b27 | 49 | |
26fabbd6 | 50 | <div *ngIf="isVideo(result)" class="entry video"> |
3a0fb65c C |
51 | <my-video-miniature |
52 | [video]="result" [user]="user" [displayAsRow]="true" | |
53 | (videoBlacklisted)="removeVideoFromArray(result)" (videoRemoved)="removeVideoFromArray(result)" | |
54 | ></my-video-miniature> | |
57c36b27 | 55 | </div> |
26fabbd6 C |
56 | </ng-container> |
57 | ||
57c36b27 | 58 | </div> |