1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 17:17:02 +00:00

added quality to release views.

This commit is contained in:
kay.one 2013-06-09 19:16:48 -07:00
parent aca5d1f361
commit 931d2ad682
3 changed files with 36 additions and 14 deletions

View file

@ -1,5 +1,5 @@
{{quality.quality.name}} {{quality.name}}
{{#if quality.proper}} {{#if proper}}
[PROPER] [PROPER]
{{/if}} {{/if}}

View file

@ -1,5 +1,11 @@
"use strict"; "use strict";
define(['app', 'Cells/FileSizeCell', 'Release/ApprovalStatusCell', 'Release/DownloadReportCell' ], function () { define([
'app',
'Cells/FileSizeCell',
'Cells/QualityCell',
'Release/ApprovalStatusCell',
'Release/DownloadReportCell'
], function () {
NzbDrone.Episode.Search.Layout = Backbone.Marionette.Layout.extend({ NzbDrone.Episode.Search.Layout = Backbone.Marionette.Layout.extend({
template: 'Episode/Search/LayoutTemplate', template: 'Episode/Search/LayoutTemplate',
@ -15,6 +21,12 @@ define(['app', 'Cells/FileSizeCell', 'Release/ApprovalStatusCell', 'Release/Down
sortable: true, sortable: true,
cell : Backgrid.IntegerCell cell : Backgrid.IntegerCell
}, },
{
name : 'title',
label : 'Title',
sortable: true,
cell : Backgrid.StringCell
},
{ {
name : 'size', name : 'size',
label : 'Size', label : 'Size',
@ -22,11 +34,12 @@ define(['app', 'Cells/FileSizeCell', 'Release/ApprovalStatusCell', 'Release/Down
cell : NzbDrone.Cells.FileSizeCell cell : NzbDrone.Cells.FileSizeCell
}, },
{ {
name : 'title', name : 'quality',
label : 'Title', label : 'Quality',
sortable: true, sortable: true,
cell : Backgrid.StringCell cell : NzbDrone.Cells.QualityCell
}, },
{ {
name : 'rejections', name : 'rejections',
label: 'decision', label: 'decision',

View file

@ -7,7 +7,8 @@ define([
'Shared/Toolbar/ToolbarLayout', 'Shared/Toolbar/ToolbarLayout',
'Cells/EpisodeNumberCell', 'Cells/EpisodeNumberCell',
'Cells/FileSizeCell', 'Cells/FileSizeCell',
'Cells/IndexerCell' 'Cells/IndexerCell',
'Cells/QualityCell'
], ],
function () { function () {
NzbDrone.Release.Layout = Backbone.Marionette.Layout.extend({ NzbDrone.Release.Layout = Backbone.Marionette.Layout.extend({
@ -25,12 +26,7 @@ define([
sortable: true, sortable: true,
cell : NzbDrone.Cells.IndexerCell cell : NzbDrone.Cells.IndexerCell
}, },
{
name : 'size',
label : 'Size',
sortable: true,
cell : NzbDrone.Cells.FileSizeCell
},
{ {
name : 'title', name : 'title',
label : 'Title', label : 'Title',
@ -43,6 +39,19 @@ define([
label : 'season', label : 'season',
cell : NzbDrone.Cells.EpisodeNumberCell cell : NzbDrone.Cells.EpisodeNumberCell
}, },
{
name : 'size',
label : 'Size',
sortable: true,
cell : NzbDrone.Cells.FileSizeCell
},
{
name : 'quality',
label : 'Quality',
sortable: true,
cell : NzbDrone.Cells.QualityCell
},
{ {
name : 'rejections', name : 'rejections',
label: 'decision', label: 'decision',