Fix History for Movie Details page.

This commit is contained in:
Leonardo Galli 2017-01-02 20:41:44 +01:00
parent 2a932fe7e8
commit 0d65984991
5 changed files with 9 additions and 8 deletions

View File

@ -76,8 +76,6 @@ namespace NzbDrone.Api.History
pagingSpec.FilterExpression = h => h.MovieId == i;
}
var pg = _historyService.Paged(pagingSpec);
return ApplyToPage(_historyService.Paged, pagingSpec, MapToResource);
}

View File

@ -73,8 +73,11 @@ namespace NzbDrone.Core.History
protected override SortBuilder<History> GetPagedQuery(QueryBuilder<History> query, PagingSpec<History> pagingSpec)
{
var baseQuery = query.Join<History, Series>(JoinType.Inner, h => h.Series, (h, s) => h.SeriesId == s.Id)
.Join<History, Episode>(JoinType.Inner, h => h.Episode, (h, e) => h.EpisodeId == e.Id);
var baseQuery = query/*.Join<History, Series>(JoinType.Inner, h => h.Series, (h, s) => h.SeriesId == s.Id)
.Join<History, Episode>(JoinType.Inner, h => h.Episode, (h, e) => h.EpisodeId == e.Id)*/
.Join<History, Movie>(JoinType.Inner, h => h.Movie, (h, e) => h.MovieId == e.Id);
return base.GetPagedQuery(baseQuery, pagingSpec);
}

View File

@ -35,7 +35,7 @@
<div id="info" class="movie-info"></div>
</div>
</div>
<div id="seasons">
<div id="movie-info">
<ul class="nav nav-tabs" id="myTab">
<li><a href="#movie-history" class="x-movie-history">History</a></li>
<li><a href="#movie-search" class="x-movie-search">Search</a></li>

View File

@ -1,3 +1,3 @@
<p class="text-warning">
No history for this episode.
</p>
No history for this movie.
</p>

View File

@ -272,7 +272,7 @@
}
}
.episode-detail-modal {
#movie-info {
.episode-info {
margin-bottom : 10px;