mirror of
https://github.com/Radarr/Radarr
synced 2024-12-29 03:15:19 +00:00
55 lines
1.6 KiB
JavaScript
55 lines
1.6 KiB
JavaScript
"use strict";
|
|
define(['app', 'Cells/FileSizeCell', 'Release/ApprovalStatusCell', 'Release/DownloadReportCell' ], function () {
|
|
|
|
NzbDrone.Episode.Search.Layout = Backbone.Marionette.Layout.extend({
|
|
template: 'Episode/Search/LayoutTemplate',
|
|
|
|
regions: {
|
|
grid: '#episode-release-grid'
|
|
},
|
|
|
|
columns: [
|
|
{
|
|
name : 'age',
|
|
label : 'Age',
|
|
sortable: true,
|
|
cell : Backgrid.IntegerCell
|
|
},
|
|
{
|
|
name : 'size',
|
|
label : 'Size',
|
|
sortable: true,
|
|
cell : NzbDrone.Cells.FileSizeCell
|
|
},
|
|
{
|
|
name : 'title',
|
|
label : 'Title',
|
|
sortable: true,
|
|
cell : Backgrid.StringCell
|
|
},
|
|
{
|
|
name : 'rejections',
|
|
label: 'decision',
|
|
cell : NzbDrone.Release.ApprovalStatusCell
|
|
},
|
|
{
|
|
name : 'download',
|
|
label: '',
|
|
cell : NzbDrone.Release.DownloadReportCell
|
|
}
|
|
],
|
|
|
|
onShow: function () {
|
|
if (!this.isClosed) {
|
|
this.grid.show(new Backgrid.Grid(
|
|
{
|
|
row : Backgrid.Row,
|
|
columns : this.columns,
|
|
collection: this.collection,
|
|
className : 'table table-hover'
|
|
}));
|
|
}
|
|
}
|
|
});
|
|
|
|
});
|