mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 18:28:19 +00:00
21 lines
544 B
JavaScript
21 lines
544 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'handlebars',
|
|
'Quality/QualityProfileCollection',
|
|
'underscore'
|
|
], function (Handlebars, QualityProfileCollection, _) {
|
|
|
|
Handlebars.registerHelper('qualityProfile', function (profileId) {
|
|
|
|
var profile = QualityProfileCollection.get(profileId);
|
|
|
|
if (profile) {
|
|
return new Handlebars.SafeString('<span class="label quality-profile-label">' + profile.get("name") + '</span>');
|
|
}
|
|
|
|
return undefined;
|
|
|
|
});
|
|
|
|
});
|