1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Handlebars/Helpers/Quality.js

22 lines
544 B
JavaScript
Raw Normal View History

2013-07-17 02:54:45 +03:00
'use strict';
define(
[
'handlebars',
'Quality/QualityProfileCollection',
'underscore'
], function (Handlebars, QualityProfileCollection, _) {
Handlebars.registerHelper('qualityProfile', function (profileId) {
var profile = QualityProfileCollection.get(profileId);
if (profile) {
2013-07-17 03:41:04 +03:00
return new Handlebars.SafeString('<span class="label quality-profile-label">' + profile.get("name") + '</span>');
2013-07-17 02:54:45 +03:00
}
return undefined;
});
});