removed mutators from series.

This commit is contained in:
Keivan Beigi 2013-07-16 16:54:45 -07:00
commit 83fe07524a
13 changed files with 97 additions and 80 deletions

View file

@ -0,0 +1,21 @@
'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;
});
});