mirror of https://github.com/status-im/consul.git
11 lines
285 B
JavaScript
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>');
|
||
|
});
|