consul/ui/javascripts/app/helpers.js

11 lines
285 B
JavaScript
Raw Normal View History

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>');
});