From 931d2ad682853bbae6d16b9437bb9d928faeb7da Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 9 Jun 2013 19:16:48 -0700 Subject: [PATCH] added quality to release views. --- UI/Cells/QualityTemplate.html | 6 +++--- UI/Episode/Search/Layout.js | 21 +++++++++++++++++---- UI/Release/Layout.js | 23 ++++++++++++++++------- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/UI/Cells/QualityTemplate.html b/UI/Cells/QualityTemplate.html index 538576448..83c3a557d 100644 --- a/UI/Cells/QualityTemplate.html +++ b/UI/Cells/QualityTemplate.html @@ -1,5 +1,5 @@ -{{quality.quality.name}} +{{quality.name}} -{{#if quality.proper}} +{{#if proper}} [PROPER] -{{/if}} \ No newline at end of file +{{/if}} diff --git a/UI/Episode/Search/Layout.js b/UI/Episode/Search/Layout.js index a129f093e..dd5251c38 100644 --- a/UI/Episode/Search/Layout.js +++ b/UI/Episode/Search/Layout.js @@ -1,5 +1,11 @@ "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({ template: 'Episode/Search/LayoutTemplate', @@ -15,6 +21,12 @@ define(['app', 'Cells/FileSizeCell', 'Release/ApprovalStatusCell', 'Release/Down sortable: true, cell : Backgrid.IntegerCell }, + { + name : 'title', + label : 'Title', + sortable: true, + cell : Backgrid.StringCell + }, { name : 'size', label : 'Size', @@ -22,11 +34,12 @@ define(['app', 'Cells/FileSizeCell', 'Release/ApprovalStatusCell', 'Release/Down cell : NzbDrone.Cells.FileSizeCell }, { - name : 'title', - label : 'Title', + name : 'quality', + label : 'Quality', sortable: true, - cell : Backgrid.StringCell + cell : NzbDrone.Cells.QualityCell }, + { name : 'rejections', label: 'decision', diff --git a/UI/Release/Layout.js b/UI/Release/Layout.js index 62155ec6a..f405f4bd5 100644 --- a/UI/Release/Layout.js +++ b/UI/Release/Layout.js @@ -7,7 +7,8 @@ define([ 'Shared/Toolbar/ToolbarLayout', 'Cells/EpisodeNumberCell', 'Cells/FileSizeCell', - 'Cells/IndexerCell' + 'Cells/IndexerCell', + 'Cells/QualityCell' ], function () { NzbDrone.Release.Layout = Backbone.Marionette.Layout.extend({ @@ -25,12 +26,7 @@ define([ sortable: true, cell : NzbDrone.Cells.IndexerCell }, - { - name : 'size', - label : 'Size', - sortable: true, - cell : NzbDrone.Cells.FileSizeCell - }, + { name : 'title', label : 'Title', @@ -43,6 +39,19 @@ define([ label : 'season', 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', label: 'decision',