1
0
Fork 0

nodes view

This commit is contained in:
hkernbach 2016-04-12 17:00:29 +02:00
parent dbe2c17ae5
commit 9576c3104b
2 changed files with 10 additions and 7 deletions

View File

@ -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>

View File

@ -58,6 +58,7 @@
continueRender: function() {
var coords = this.coordinators.toJSON();
console.log(coords);
this.$el.html(this.template.render({
coords: coords
}));