1
0
Fork 0
peertube/client/src/app/search/search.component.html

56 lines
2.3 KiB
HTML
Raw Normal View History

<div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" class="search-result">
2018-07-24 10:00:22 -04:00
<div class="results-header">
2018-07-20 12:31:49 -04:00
<div class="first-line">
2018-07-24 10:00:22 -04:00
<div class="results-counter" *ngIf="pagination.totalItems">
<span i18n>{{ pagination.totalItems | myNumberFormatter }} results</span>
<span *ngIf="currentSearch" i18n>
for <span class="search-value">{{ currentSearch }}</span>
</span>
2018-07-20 12:31:49 -04:00
</div>
<div
class="results-filter-button" (click)="isSearchFilterCollapsed = !isSearchFilterCollapsed" role="button"
2018-07-23 14:13:30 -04:00
[attr.aria-expanded]="!isSearchFilterCollapsed" aria-controls="collapseBasic"
2018-07-20 12:31:49 -04:00
>
<span class="icon icon-filter"></span>
<ng-container i18n>Filters</ng-container>
</div>
</div>
<div class="results-filter" [ngbCollapse]="isSearchFilterCollapsed">
2018-07-23 14:13:30 -04:00
<my-search-filters [advancedSearch]="advancedSearch" (filtered)="onFiltered()"></my-search-filters>
2018-07-20 12:31:49 -04:00
</div>
</div>
2018-08-23 11:58:39 -04:00
<div i18n *ngIf="pagination.totalItems === 0 && videoChannels.length === 0" class="no-result">
2018-07-20 12:31:49 -04:00
No results found
2018-07-19 10:17:54 -04:00
</div>
2018-08-23 11:58:39 -04:00
<div *ngFor="let videoChannel of videoChannels" class="entry video-channel">
<a [routerLink]="[ '/video-channels', videoChannel.name ]">
<img [src]="videoChannel.avatarUrl" alt="Avatar" />
</a>
<div class="video-channel-info">
<a [routerLink]="[ '/video-channels', videoChannel.name ]" class="video-channel-names">
<div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
<div class="video-channel-name">{{ videoChannel.name }}</div>
</a>
<div i18n class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div>
</div>
<my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
</div>
2018-07-19 10:17:54 -04:00
<div *ngFor="let video of videos" class="entry video">
<my-video-thumbnail [video]="video"></my-video-thumbnail>
<div class="video-info">
<a class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a>
<span i18n class="video-info-date-views">{{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
<a class="video-info-account" [routerLink]="[ '/accounts', video.by ]">{{ video.by }}</a>
</div>
</div>
</div>