mirror of https://gitee.com/bigwinds/arangodb
nodes view
This commit is contained in:
parent
dbe2c17ae5
commit
9576c3104b
|
@ -6,9 +6,10 @@
|
|||
|
||||
<div class="pure-g cluster-nodes-title pure-table pure-table-header pure-title">
|
||||
<div class="pure-table-row">
|
||||
<div class="pure-u-1-3 mid">Name</div>
|
||||
<div class="pure-u-1-3 mid">Address</div>
|
||||
<div class="pure-u-1-3 mid">Status</div>
|
||||
<div class="pure-u-1-4 mid">Name</div>
|
||||
<div class="pure-u-1-4 mid">Address</div>
|
||||
<div class="pure-u-1-4 mid">Protocol</div>
|
||||
<div class="pure-u-1-4 mid">Status</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -18,13 +19,14 @@
|
|||
|
||||
<div class="pure-table-row" node="<%=node.name%>">
|
||||
|
||||
<div class="pure-u-1-3 mid"><%= node.name %></div>
|
||||
<div class="pure-u-1-3 mid"><%= node.address %></div>
|
||||
<div class="pure-u-1-4 mid"><%= node.name %></div>
|
||||
<div class="pure-u-1-4 mid"><%= node.address %></div>
|
||||
<div class="pure-u-1-4 mid"><%= node.protocol %></div>
|
||||
|
||||
<% if(node.status === 'ok') { %>
|
||||
<div class="pure-u-1-3 mid"><i class="fa fa-check-circle"></i></div>
|
||||
<div class="pure-u-1-4 mid"><i class="fa fa-check-circle"></i></div>
|
||||
<% } else { %>
|
||||
<div class="pure-u-1-3 mid"><i class="fa fa-exclamation-circle"></i></div>
|
||||
<div class="pure-u-1-4 mid"><i class="fa fa-exclamation-circle"></i></div>
|
||||
<% } %>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
|
||||
continueRender: function() {
|
||||
var coords = this.coordinators.toJSON();
|
||||
console.log(coords);
|
||||
this.$el.html(this.template.render({
|
||||
coords: coords
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue