diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-20 18:31:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:04:05 +0200 |
commit | 0b18f4aa80df8868bf34605423c7a298dffbb2aa (patch) | |
tree | 25299da5d94fc73e88b21e87aeb2c156999c6fcd /client/src/app/search/search.component.html | |
parent | d525fc399a14a8b16eaad6d4c0bc0a9c4093c3c9 (diff) | |
download | PeerTube-0b18f4aa80df8868bf34605423c7a298dffbb2aa.tar.gz PeerTube-0b18f4aa80df8868bf34605423c7a298dffbb2aa.tar.zst PeerTube-0b18f4aa80df8868bf34605423c7a298dffbb2aa.zip |
Add advanced search in client
Diffstat (limited to 'client/src/app/search/search.component.html')
-rw-r--r-- | client/src/app/search/search.component.html | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/client/src/app/search/search.component.html b/client/src/app/search/search.component.html index b8c4d7dc5..3a63dbcec 100644 --- a/client/src/app/search/search.component.html +++ b/client/src/app/search/search.component.html | |||
@@ -1,10 +1,28 @@ | |||
1 | <div i18n *ngIf="pagination.totalItems === 0" class="no-result"> | ||
2 | No results found | ||
3 | </div> | ||
4 | |||
5 | <div myInfiniteScroller [autoLoading]="true" (nearOfBottom)="onNearOfBottom()" class="search-result"> | 1 | <div myInfiniteScroller [autoLoading]="true" (nearOfBottom)="onNearOfBottom()" class="search-result"> |
6 | <div i18n *ngIf="pagination.totalItems" class="results-counter"> | 2 | <div i18n class="results-header"> |
7 | {{ pagination.totalItems | myNumberFormatter }} results for <span class="search-value">{{ currentSearch }}</span> | 3 | <div class="first-line"> |
4 | <div class="results-counter"> | ||
5 | <ng-container *ngIf="pagination.totalItems"> | ||
6 | {{ pagination.totalItems | myNumberFormatter }} results for <span class="search-value">{{ currentSearch }}</span> | ||
7 | </ng-container> | ||
8 | </div> | ||
9 | |||
10 | <div | ||
11 | class="results-filter-button" (click)="isSearchFilterCollapsed = !isSearchFilterCollapsed" role="button" | ||
12 | [attr.aria-expanded]="isSearchFilterCollapsed" aria-controls="collapseBasic" | ||
13 | > | ||
14 | <span class="icon icon-filter"></span> | ||
15 | <ng-container i18n>Filters</ng-container> | ||
16 | </div> | ||
17 | </div> | ||
18 | |||
19 | <div class="results-filter" [collapse]="isSearchFilterCollapsed"> | ||
20 | <my-search-filters [advancedSearch]="advancedSearch" (filtered)="onFiltered($event)"></my-search-filters> | ||
21 | </div> | ||
22 | </div> | ||
23 | |||
24 | <div i18n *ngIf="pagination.totalItems === 0" class="no-result"> | ||
25 | No results found | ||
8 | </div> | 26 | </div> |
9 | 27 | ||
10 | <div *ngFor="let video of videos" class="entry video"> | 28 | <div *ngFor="let video of videos" class="entry video"> |