31 lines
1.2 KiB
HTML
Executable File
31 lines
1.2 KiB
HTML
Executable File
<div class="cluster-name"><%- cluster.get('name') %></div>
|
|
<% var nodes = cluster.get('nodes') %>
|
|
<div class="cluster-hardware">
|
|
<% if (!nodes.deferred || nodes.deferred.state() == 'resolved') { %>
|
|
<div class="row-fluid">
|
|
<div class="span6">Nodes:</div>
|
|
<div class="span4"><%= nodes.length %></div>
|
|
<% if (nodes.length) { %>
|
|
<div class="span6">CPU (cores):</div>
|
|
<div class="span4"><%= nodes.resources('cores') %></div>
|
|
<div class="span6">HDD:</div>
|
|
<div class="span4"><%= nodes.resources('hdd') ? showDiskSize(nodes.resources('hdd')) : '?GB' %></div>
|
|
<div class="span6">RAM:</div>
|
|
<div class="span4"><%= nodes.resources('ram') ? showMemorySize(nodes.resources('ram')) : '?GB' %></div>
|
|
<% } %>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
<div class="cluster-status">
|
|
<% if (cluster.task('cluster_deletion', 'running')) { %>
|
|
Removing
|
|
<% } else if (cluster.task('deploy', 'running')) { %>
|
|
<div class="cluster-status-deploy">
|
|
<div class="bar" style="width:0"></div>
|
|
</div>
|
|
<% } else { %>
|
|
<% var statuses = {'new': 'New', 'deployment': 'Deploying', 'operational': 'Operational', 'error': 'Error', 'remove': 'Removing'} %>
|
|
<%= statuses[cluster.get('status')] %>
|
|
<% } %>
|
|
</div>
|