mirror of https://github.com/hashicorp/consul
Jack Pearkes
11 years ago
3 changed files with 13 additions and 1 deletions
@ -0,0 +1,10 @@
|
||||
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>'); |
||||
}); |
Loading…
Reference in new issue