Fixed an issue where the table didn't match the model.

Fixed #67
This commit is contained in:
tidusjar 2016-03-22 13:22:47 +00:00
commit 59cf379d56
7 changed files with 16 additions and 12 deletions

View file

@ -337,7 +337,8 @@ function buildRequestContext(result, type) {
issues: result.issues,
otherMessage: result.otherMessage,
requestId: result.id,
adminNote: result.adminNotes
adminNote: result.adminNotes,
imdb: result.imdbId
};
return context;

View file

@ -139,7 +139,8 @@ function buildMovieContext(result) {
voteCount: result.voteCount,
voteAverage: result.voteAverage,
year: year,
type: "movie"
type: "movie",
imdb: result.imdbId
};
return context;
@ -154,7 +155,8 @@ function buildTvShowContext(result) {
title: result.seriesName,
overview: result.overview,
year: year,
type: "tv"
type: "tv",
imdb: result.imdbId
};
return context;
}

View file

@ -94,7 +94,7 @@
</div>
<div class="col-sm-5 ">
<div>
<a href="https://www.themoviedb.org/{{type}}/{{id}}">
<a href="http://www.imdb.com/title/{{imdb}}/" targe="_blank">
<h4 class="request-title">{{title}} ({{year}})</h4>
</a>
<span class="label label-success">{{status}}</span>

View file

@ -76,7 +76,7 @@
</div>
<div class="col-sm-5 ">
<div>
<a href="https://www.themoviedb.org/{{type}}/{{id}}">
<a href="http://www.imdb.com/title/{{imdb}}/" targe="_blank">
<h4>{{title}} ({{year}})</h4>
</a>
</div>