diff --git a/UI/Mixins/backbone.Backgrid.mixin.js b/UI/Mixins/backbone.Backgrid.mixin.js index 13e9dcf36..31ef8ae89 100644 --- a/UI/Mixins/backbone.Backgrid.mixin.js +++ b/UI/Mixins/backbone.Backgrid.mixin.js @@ -34,21 +34,8 @@ Backgrid.AirDateCell = Backgrid.Cell.extend({ } }); -Backgrid.EpisodeProgressCell = Backgrid.Cell.extend({ - className: "episode-progress-cell", - template: 'Series/EpisodeProgressTemplate', - - render: function () { - var data = this.model.toJSON(); - var html = Marionette.Renderer.render(this.template, data); - this.$el.html(html); - - return this; - } -}); - -Backgrid.ControlsColumnCell = Backgrid.Cell.extend({ - className: "controls-cell", +Backgrid.TemplateBackedCell = Backgrid.Cell.extend({ + className: '', template: 'Series/Index/Table/ControlsColumnTemplate', render: function () { diff --git a/UI/Series/Index/SeriesIndexLayout.js b/UI/Series/Index/SeriesIndexLayout.js index c7ab0592c..30e3ba5d6 100644 --- a/UI/Series/Index/SeriesIndexLayout.js +++ b/UI/Series/Index/SeriesIndexLayout.js @@ -35,7 +35,7 @@ define([ name: 'title', label: 'Title', editable: false, - cell: 'string', + cell: Backgrid.TemplateBackedCell.extend({ template: 'Series/Index/Table/SeriesTitleTemplate' }), headerCell: 'nzbDrone' }, { @@ -71,7 +71,7 @@ define([ label: 'Episodes', editable: false, sortable: false, - cell: 'episodeProgress', + cell: Backgrid.TemplateBackedCell.extend({ template: 'Series/EpisodeProgressTemplate' }), headerCell: 'nzbDrone' }, { @@ -79,7 +79,7 @@ define([ label: '', editable: false, sortable: false, - cell: 'controlsColumn', + cell: Backgrid.TemplateBackedCell.extend({ template: 'Series/Index/Table/ControlsColumnTemplate' }), headerCell: 'nzbDrone' } ]; diff --git a/UI/Series/Index/Table/SeriesTitleTemplate.html b/UI/Series/Index/Table/SeriesTitleTemplate.html new file mode 100644 index 000000000..cbc4e9d37 --- /dev/null +++ b/UI/Series/Index/Table/SeriesTitleTemplate.html @@ -0,0 +1 @@ +{{title}} \ No newline at end of file