New: Show age when grabbed on history details

This commit is contained in:
Mark McDowall
2014-07-09 22:29:40 -07:00
parent 140427c76e
commit f008d85657
4 changed files with 29 additions and 7 deletions
+3 -5
View File
@@ -2,20 +2,18 @@
define(
[
'handlebars',
'Quality/QualityProfileCollection',
'underscore'
], function (Handlebars, QualityProfileCollection, _) {
'Quality/QualityProfileCollection'
], function (Handlebars, QualityProfileCollection) {
Handlebars.registerHelper('qualityProfile', function (profileId) {
var profile = QualityProfileCollection.get(profileId);
if (profile) {
return new Handlebars.SafeString('<span class="label label-default quality-profile-label">' + profile.get("name") + '</span>');
return new Handlebars.SafeString('<span class="label label-default quality-profile-label">' + profile.get('name') + '</span>');
}
return undefined;
});
});