1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Movie history now fully implemented.

This commit is contained in:
Leonardo Galli 2017-01-02 21:02:54 +01:00
parent 0d65984991
commit 2eedfca78a
4 changed files with 19 additions and 8 deletions

View File

@ -32,4 +32,4 @@ module.exports = Marionette.Layout.extend({
vent.trigger(vent.Commands.CloseModalCommand); vent.trigger(vent.Commands.CloseModalCommand);
} }
}); });

View File

@ -50,7 +50,7 @@ var Collection = PageableCollection.extend({
}, },
sortMappings : { sortMappings : {
'series' : { sortKey : 'series.sortTitle' } 'movie' : { sortKey : 'movie.sortTitle' }
}, },
initialize : function(options) { initialize : function(options) {

View File

@ -2,7 +2,7 @@ var Marionette = require('marionette');
var Backgrid = require('backgrid'); var Backgrid = require('backgrid');
var HistoryCollection = require('./HistoryCollection'); var HistoryCollection = require('./HistoryCollection');
var EventTypeCell = require('../../Cells/EventTypeCell'); var EventTypeCell = require('../../Cells/EventTypeCell');
var SeriesTitleCell = require('../../Cells/SeriesTitleCell'); var MovieTitleCell = require('../../Cells/MovieTitleCell');
var EpisodeNumberCell = require('../../Cells/EpisodeNumberCell'); var EpisodeNumberCell = require('../../Cells/EpisodeNumberCell');
var EpisodeTitleCell = require('../../Cells/EpisodeTitleCell'); var EpisodeTitleCell = require('../../Cells/EpisodeTitleCell');
var HistoryQualityCell = require('./HistoryQualityCell'); var HistoryQualityCell = require('./HistoryQualityCell');
@ -29,11 +29,11 @@ module.exports = Marionette.Layout.extend({
cellValue : 'this' cellValue : 'this'
}, },
{ {
name : 'series', name : 'movies',
label : 'Series', label : 'Movie Title',
cell : SeriesTitleCell cell : MovieTitleCell
}, },
{ /*{
name : 'episode', name : 'episode',
label : 'Episode', label : 'Episode',
cell : EpisodeNumberCell, cell : EpisodeNumberCell,
@ -44,7 +44,7 @@ module.exports = Marionette.Layout.extend({
label : 'Episode Title', label : 'Episode Title',
cell : EpisodeTitleCell, cell : EpisodeTitleCell,
sortable : false sortable : false
}, },*/
{ {
name : 'this', name : 'this',
label : 'Quality', label : 'Quality',

View File

@ -0,0 +1,11 @@
var TemplatedCell = require('./TemplatedCell');
module.exports = TemplatedCell.extend({
className : 'series-title-cell',
template : 'Cells/SeriesTitleTemplate',
render : function() {
this.$el.html(this.model.get("movie").get("title")); //Hack, but somehow handlebar helper does not work.
return this;
}
});