2014-05-01 17:15:33 +00:00
|
|
|
Ember.Handlebars.helper('panelBar', function(status) {
|
|
|
|
var highlightClass;
|
|
|
|
|
|
|
|
if (status == "passing") {
|
|
|
|
highlightClass = "bg-green";
|
|
|
|
} else {
|
|
|
|
highlightClass = "bg-orange";
|
|
|
|
}
|
|
|
|
return new Handlebars.SafeString('<div class="panel-bar ' + highlightClass + '"></div>');
|
|
|
|
});
|
2014-06-05 18:28:40 +00:00
|
|
|
|
|
|
|
Ember.Handlebars.helper('listBar', function(status) {
|
|
|
|
var highlightClass;
|
|
|
|
|
|
|
|
if (status == "passing") {
|
|
|
|
highlightClass = "bg-green";
|
|
|
|
} else {
|
|
|
|
highlightClass = "bg-orange";
|
|
|
|
}
|
|
|
|
return new Handlebars.SafeString('<div class="list-bar-horizontal ' + highlightClass + '"></div>');
|
|
|
|
});
|