mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-25 22:37:27 -04:00
74a38415cf
Indexes are created with the same uniqueness when copying a table New: Non-English episode support New: Renamed Quality Profiles to Profiles and made them more powerful New: Configurable wait time before grabbing a release to wait for a better quality
25 lines
787 B
JavaScript
25 lines
787 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'handlebars',
|
|
'underscore'
|
|
], function (Handlebars, _) {
|
|
Handlebars.registerHelper('allowedLabeler', function () {
|
|
var ret = '';
|
|
var cutoff = this.cutoff;
|
|
|
|
_.each(this.items, function (item) {
|
|
if (item.allowed) {
|
|
if (item.quality.id === cutoff.id) {
|
|
ret += '<li><span class="label label-info" title="Cutoff">' + item.quality.name + '</span></li>';
|
|
}
|
|
else {
|
|
ret += '<li><span class="label label-default">' + item.quality.name + '</span></li>';
|
|
}
|
|
}
|
|
});
|
|
|
|
return new Handlebars.SafeString(ret);
|
|
});
|
|
});
|