mirror of https://github.com/Ombi-app/Ombi
parent
b570d904bf
commit
c18efc5a3a
@ -1,62 +1,80 @@
|
|||||||
<div *ngIf="movie.genres">
|
<div *ngIf="movie">
|
||||||
|
<div>
|
||||||
|
<strong>Status:</strong>
|
||||||
|
<div>{{movie.status}}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<strong>Availability</strong>
|
||||||
|
<div *ngIf="movie.available">{{'Common.Available' | translate}}</div>
|
||||||
|
<div *ngIf="!movie.available">{{'Common.NotAvailable' | translate}}</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<strong>Request Status</strong>
|
||||||
|
<div *ngIf="movie.approved && !movie.available">{{'Common.ProcessingRequest' | translate}}</div>
|
||||||
|
<div *ngIf="movie.requested && !movie.approved && !movie.available">{{'Common.PendingApproval' | translate}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="!movie.requested && !movie.available && !movie.approved">{{'Common.NotRequested' | translate}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<div *ngIf="movie.genres">
|
||||||
<strong>Genres:</strong>
|
<strong>Genres:</strong>
|
||||||
<div>
|
<div>
|
||||||
<mat-chip-list>
|
<mat-chip-list>
|
||||||
<mat-chip *ngFor="let genre of movie.genres">
|
<mat-chip color="accent" selected *ngFor="let genre of movie.genres">
|
||||||
{{genre.name}}
|
{{genre.name}}
|
||||||
</mat-chip>
|
</mat-chip>
|
||||||
</mat-chip-list>
|
</mat-chip-list>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<div>
|
|
||||||
<div>
|
|
||||||
<strong>Status:</strong>
|
|
||||||
<div>{{movie.status}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
|
|
||||||
<strong>Theatrical Release:</strong>
|
<strong>Theatrical Release:</strong>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
{{movie.releaseDate | date: 'mediumDate'}}
|
{{movie.releaseDate | date: 'mediumDate'}}
|
||||||
</div>
|
<div *ngIf="movie.digitalReleaseDate">
|
||||||
</div>
|
|
||||||
<div *ngIf="movie.digitalReleaseDate">
|
|
||||||
<strong>Digital Release:</strong>
|
<strong>Digital Release:</strong>
|
||||||
<div>
|
<div>
|
||||||
{{movie.digitalReleaseDate | date: 'mediumDate'}}
|
{{movie.digitalReleaseDate | date: 'mediumDate'}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="movie.voteAverage">
|
<div *ngIf="movie.voteAverage">
|
||||||
<strong>User Score:</strong>
|
<strong>User Score:</strong>
|
||||||
<div>
|
<div>
|
||||||
{{movie.voteAverage | number:'1.0-1'}} / 10
|
{{movie.voteAverage | number:'1.0-1'}} / 10
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="movie.voteCount">
|
<div *ngIf="movie.voteCount">
|
||||||
<strong>Votes:</strong>
|
<strong>Votes:</strong>
|
||||||
<div>
|
<div>
|
||||||
{{movie.voteCount | thousandShort: 1}}
|
{{movie.voteCount | thousandShort: 1}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong>Runtime:</strong>
|
<strong>Runtime:</strong>
|
||||||
<div>{{movie.runtime}} Minutes</div>
|
<div>{{movie.runtime}} Minutes</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="movie.revenue">
|
<div *ngIf="movie.revenue">
|
||||||
<strong>Revenue:</strong>
|
<strong>Revenue:</strong>
|
||||||
<div> {{movie.revenue | currency: 'USD'}}</div>
|
<div> {{movie.revenue | currency: 'USD'}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="movie.budget">
|
<div *ngIf="movie.budget">
|
||||||
<strong>Budget:</strong>
|
<strong>Budget:</strong>
|
||||||
<div> {{movie.budget | currency: 'USD'}}</div>
|
<div> {{movie.budget | currency: 'USD'}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<strong>Keywords/Tags:</strong>
|
<strong>Keywords/Tags:</strong>
|
||||||
<mat-chip-list>
|
<mat-chip-list>
|
||||||
<mat-chip *ngFor="let keyword of movie.keywords.keywordsValue">
|
<mat-chip color="accent" selected *ngFor="let keyword of movie.keywords.keywordsValue">
|
||||||
{{keyword.name}}
|
{{keyword.name}}
|
||||||
</mat-chip>
|
</mat-chip>
|
||||||
</mat-chip-list>
|
</mat-chip-list>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,61 @@
|
|||||||
|
<div>
|
||||||
|
<div *ngIf="tv.status">
|
||||||
|
<strong>Status:</strong>
|
||||||
|
<div>
|
||||||
|
{{tv.status}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<strong>First Aired:</strong>
|
||||||
|
<div>
|
||||||
|
{{tv.firstAired | date: 'mediumDate'}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<strong>Status:</strong>
|
||||||
|
<div>
|
||||||
|
{{tv.status}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<strong>Runtime:</strong>
|
||||||
|
<div>
|
||||||
|
{{tv.runtime}} Minutes
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="tv.rating">
|
||||||
|
<strong>Rating:</strong>
|
||||||
|
<div>
|
||||||
|
{{tv.rating}} / 10
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="tv.network">
|
||||||
|
<strong>Network:</strong>
|
||||||
|
<div>
|
||||||
|
{{tv.network.name}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="tv.genre">
|
||||||
|
<strong>Genres:</strong>
|
||||||
|
<div>
|
||||||
|
<span *ngFor="let genre of tv.genre">
|
||||||
|
{{genre}} |
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<div *ngIf="seasonCount">
|
||||||
|
<strong>Seasons:</strong>
|
||||||
|
<div>
|
||||||
|
{{seasonCount}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="totalEpisodes">
|
||||||
|
<strong>Episodes:</strong>
|
||||||
|
<div>
|
||||||
|
{{totalEpisodes}}
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,12 @@
|
|||||||
|
import { Component, ViewEncapsulation, Input } from "@angular/core";
|
||||||
|
import { ISearchTvResultV2 } from "../../../interfaces/ISearchTvResultV2";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
templateUrl: "./tv-information-panel.component.html",
|
||||||
|
styleUrls: ["../../media-details.component.scss"],
|
||||||
|
selector: "tv-information-panel",
|
||||||
|
encapsulation: ViewEncapsulation.None
|
||||||
|
})
|
||||||
|
export class TvInformationPanelComponent {
|
||||||
|
@Input() public tv: ISearchTvResultV2;
|
||||||
|
}
|
Loading…
Reference in new issue