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:
parent
0d65984991
commit
2eedfca78a
@ -32,4 +32,4 @@ module.exports = Marionette.Layout.extend({
|
||||
|
||||
vent.trigger(vent.Commands.CloseModalCommand);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -50,7 +50,7 @@ var Collection = PageableCollection.extend({
|
||||
},
|
||||
|
||||
sortMappings : {
|
||||
'series' : { sortKey : 'series.sortTitle' }
|
||||
'movie' : { sortKey : 'movie.sortTitle' }
|
||||
},
|
||||
|
||||
initialize : function(options) {
|
||||
|
@ -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',
|
||||
|
11
src/UI/Cells/MovieTitleCell.js
Normal file
11
src/UI/Cells/MovieTitleCell.js
Normal 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;
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user