Files
Readarr/src/UI/Handlebars/Helpers/Quality.js
Mark McDowall 74a38415cf Profiles
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
2014-07-25 23:21:44 -07:00

20 lines
496 B
JavaScript

'use strict';
define(
[
'handlebars',
'Profile/ProfileCollection'
], function (Handlebars, ProfileCollection) {
Handlebars.registerHelper('profile', function (profileId) {
var profile = ProfileCollection.get(profileId);
if (profile) {
return new Handlebars.SafeString('<span class="label label-default profile-label">' + profile.get("name") + '</span>');
}
return undefined;
});
});