mirror of https://github.com/Ombi-app/Ombi
parent
585d870250
commit
e13f2a28fa
@ -0,0 +1,51 @@
|
||||
<div>
|
||||
<strong>Theatrical Release:</strong>
|
||||
<div>
|
||||
{{movie.releaseDate | date: 'mediumDate'}}
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="movie.digitalReleaseDate">
|
||||
<strong>Digital Release:</strong>
|
||||
<div>
|
||||
{{movie.digitalReleaseDate | date: 'mediumDate'}}
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="movie.voteAverage">
|
||||
<strong>User Score:</strong>
|
||||
<div>
|
||||
{{movie.voteAverage | number:'1.0-1'}} / 10
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="movie.voteCount">
|
||||
<strong>Votes:</strong>
|
||||
<div>
|
||||
{{movie.voteCount | thousandShort: 1}}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Status:</strong>
|
||||
<div>{{movie.status}}</div>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Runtime:</strong>
|
||||
<div>{{movie.runtime}} Minutes</div>
|
||||
</div>
|
||||
<div *ngIf="movie.revenue">
|
||||
<strong>Revenue:</strong>
|
||||
<div> {{movie.revenue | currency: 'USD'}}</div>
|
||||
</div>
|
||||
<div *ngIf="movie.budget">
|
||||
<strong>Budget:</strong>
|
||||
<div> {{movie.budget | currency: 'USD'}}</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="movie.genres">
|
||||
<strong>Genres:</strong>
|
||||
<div>
|
||||
<mat-chip-list>
|
||||
<mat-chip *ngFor="let genre of movie.genres">
|
||||
{{genre.name}}
|
||||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,12 @@
|
||||
import { Component, ViewEncapsulation, Input } from "@angular/core";
|
||||
import { ISearchMovieResultV2 } from "../../../interfaces/ISearchMovieResultV2";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./movie-information-panel.component.html",
|
||||
styleUrls: ["../../media-details.component.scss"],
|
||||
selector: "movie-information-panel",
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class MovieInformationPanelComponent {
|
||||
@Input() public movie: ISearchMovieResultV2;
|
||||
}
|
Loading…
Reference in new issue