open-consul/ui/javascripts/app/helpers.js
2014-05-01 13:15:33 -04:00

11 lines
285 B
JavaScript

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