-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
45 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
<div class="alert"> | ||
<span class="label label-inverse"><%= info.name %></span> | ||
<span class="label label-warning"><a href='/?group=<%= info.name %>'>View</a></span> | ||
<span class="badge badge-info" id='info_<%= info.name %>_total'>0</span> | ||
<span class="badge badge-success" id='info_<%= info.name %>_success'>0</span> | ||
<span class="badge badge-important" id='info_<%= info.name %>_error'>0</span> | ||
<div class="alert alert-info"> | ||
<span class="badge badge-inverse">Group: <%= name %></span> | ||
<span class="badge badge-success">Normal: <%= info.success_count %></span> | ||
<span class="badge badge-important">Fail: <%= info.error_count %></span> | ||
<div> | ||
<% | ||
var nodes = info.nodes; | ||
for (var nidx in nodes) { | ||
var node = nodes[nidx]; | ||
if (node.status == "ok") { | ||
%> | ||
<span class="label label-success"><%= node.name %></span> | ||
<% } else { %> | ||
<span class="label label-important"><%= node.name %></span> | ||
<% } %> | ||
<% } %> | ||
</div> | ||
<div class="progress progress-striped"> | ||
<div id='bar_<%= info.name %>_success' class="bar bar-success" style="width: 100%;"></div> | ||
<div id='bar_<%= info.name %>_danger' class="bar bar-danger" style="width: 0%;"></div> | ||
</div> |