Skip to content

Commit

Permalink
Support multiple circuit status
Browse files Browse the repository at this point in the history
  • Loading branch information
eunmin committed Apr 25, 2017
1 parent df912b2 commit eb91b23
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
<% } else {
/* We have some circuits that are open */
%>
Circuit <font color="orange"><%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %></font>
<% if(typeof isCircuitBreakerOpen === 'object' ) { %>
Circuit <font color="orange">Open <%= isCircuitBreakerOpen.true %></font> <font color="green">Closed <%= isCircuitBreakerOpen.false %></font>
<% } else { %>
Circuit <font color="orange"><%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %></font>
<% } %>
<% } %>
<% } %>
</div>
Expand Down

0 comments on commit eb91b23

Please sign in to comment.