You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
544 B
22 lines
544 B
11 years ago
|
'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-lable">' + profile.get("name") + '</span>');
|
||
|
}
|
||
|
|
||
|
return undefined;
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|