1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02: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);
}
});
});

View File

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

View File

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