parent
0870afb425
commit
64ecaf5f6e
@ -1,5 +1,5 @@
|
|||||||
{{#if proper}}
|
{{#if proper}}
|
||||||
<span class="badge badge-info" title="PROPER">{{quality.name}}</span>
|
<span class="badge badge-info" title="PROPER">{{quality.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="badge badge-inverse">{{quality.name}}</span>
|
<span class="badge">{{quality.name}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in new issue