1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-17 21:26:22 -04:00

Fixed: Repaired Cutoff Unmet UI and added Cutoff Unmet status badge to History.

This commit is contained in:
Taloth Saldono
2014-08-27 02:25:35 +02:00
parent 0870afb425
commit 64ecaf5f6e
12 changed files with 130 additions and 60 deletions

View File

@@ -1,5 +1,5 @@
{{#if proper}}
<span class="badge badge-info" title="PROPER">{{quality.name}}</span>
{{else}}
<span class="badge badge-inverse">{{quality.name}}</span>
<span class="badge">{{quality.name}}</span>
{{/if}}

View File

@@ -78,7 +78,7 @@
}
}
td.episode-status-cell, td.quality-cell {
td.episode-status-cell, td.quality-cell, td.history-quality-cell {
text-align: center;
width: 80px;

View File

@@ -0,0 +1,31 @@
'use strict';
define(
[
'Cells/NzbDroneCell'
], function (NzbDroneCell) {
return NzbDroneCell.extend({
className: 'history-quality-cell',
render: function () {
var title = '';
var quality = this.model.get('quality');
if (quality.proper) {
title = 'PROPER';
}
if (this.model.get('qualityCutoffNotMet')) {
this.$el.html('<span class="badge badge-inverse" title="{0}">{1}</span>'.format(title, quality.quality.name));
}
else {
this.$el.html('<span class="badge" title="{0}">{1}</span>'.format(title, quality.quality.name));
}
return this;
}
});
});

View File

@@ -8,7 +8,7 @@ define(
'Cells/SeriesTitleCell',
'Cells/EpisodeNumberCell',
'Cells/EpisodeTitleCell',
'Cells/QualityCell',
'History/Table/HistoryQualityCell',
'Cells/RelativeDateCell',
'History/Table/HistoryDetailsCell',
'Shared/Grid/Pager',
@@ -21,7 +21,7 @@ define(
SeriesTitleCell,
EpisodeNumberCell,
EpisodeTitleCell,
QualityCell,
HistoryQualityCell,
RelativeDateCell,
HistoryDetailsCell,
GridPager,
@@ -62,9 +62,9 @@ define(
sortable : false
},
{
name : 'quality',
name : 'this',
label : 'Quality',
cell : QualityCell,
cell : HistoryQualityCell,
sortable : false
},
{