mirror of https://github.com/Ombi-app/Ombi
parent
8f3dd86c52
commit
24bb0207d5
@ -1,3 +1,25 @@
|
||||
<input class="form-control quater-width search-bar" type="text" [(ngModel)]="selectedItem" placeholder="{{'NavigationBar.Search' | translate}}" aria-label="Search" [ngbTypeahead]="searchModel" [resultFormatter]="formatter"
|
||||
[inputFormatter]="formatter" (selectItem)="selected($event)">
|
||||
<input class="form-control quater-width search-bar" type="text" [(ngModel)]="selectedItem"
|
||||
placeholder="{{'NavigationBar.Search' | translate}}" aria-label="Search" [ngbTypeahead]="searchModel"
|
||||
[resultFormatter]="formatter" [resultTemplate]="template" (selectItem)="selected($event)">
|
||||
|
||||
<ng-template #template let-result="result">
|
||||
|
||||
<div *ngIf="result.media_type === 'movie'">
|
||||
<i class="fa fa-film"></i>
|
||||
<span *ngIf="result.release_date">
|
||||
{{result.title}} ({{result.release_date.slice(0,4)}})
|
||||
</span>
|
||||
<span *ngIf="!result.release_date">{{result.title}}</span>
|
||||
</div>
|
||||
<div *ngIf="result.media_type === 'tv'">
|
||||
<i class="fa fa-tv"></i>
|
||||
<span *ngIf="result.release_date">
|
||||
{{result.name}} ({{result.release_date.slice(0,4)}})
|
||||
</span>
|
||||
<span *ngIf="!result.release_date">{{result.name}}</span>
|
||||
</div>
|
||||
<!-- Collection -->
|
||||
<!-- <i class="fa fa-file-video-o" aria-hidden="true"></i> -->
|
||||
|
||||
|
||||
</ng-template>
|
Loading…
Reference in new issue