mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-31 13:04:03 +00:00
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
20 lines
496 B
JavaScript
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;
|
|
|
|
});
|
|
});
|