mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Quality Profiles move to cards
This commit is contained in:
parent
f8fee8e3d0
commit
a3a1cf26ee
10 changed files with 119 additions and 37 deletions
18
UI/Settings/Quality/Profile/AllowedLabeler.js
Normal file
18
UI/Settings/Quality/Profile/AllowedLabeler.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
define(['app', 'handlebars'], function (App,Handlebars) {
|
||||
Handlebars.registerHelper('allowedLabeler', function () {
|
||||
var ret = '';
|
||||
var cutoff = this.cutoff;
|
||||
_.each(this.allowed, function (allowed) {
|
||||
if (allowed.id === cutoff.id) {
|
||||
ret += '<span class="label label-info" title="Cutoff">' + allowed.name + '</span> ';
|
||||
}
|
||||
|
||||
else {
|
||||
ret += '<span class="label">' + allowed.name + '</span> ';
|
||||
}
|
||||
});
|
||||
|
||||
return new Handlebars.SafeString(ret);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue