update
This commit is contained in:
parent
ece51ec54c
commit
5aab51cca1
@ -156,7 +156,7 @@
|
|||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="x_content tile fixed_height_160" style="overflow-y:auto;">
|
<div class="x_content tile fixed_height_160" style="overflow-y:auto;">
|
||||||
<% begin %>
|
<% if nodes.nil? %>
|
||||||
<div class="widget_summary">
|
<div class="widget_summary">
|
||||||
<% ping = ((nodes.select{ |node| node["ping"].eql? "true" }.length.to_f / nodes.length.to_f) * 100).to_i %>
|
<% ping = ((nodes.select{ |node| node["ping"].eql? "true" }.length.to_f / nodes.length.to_f) * 100).to_i %>
|
||||||
<div class="w_left w_25">
|
<div class="w_left w_25">
|
||||||
@ -208,8 +208,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<% rescue => ex %>
|
<% else %>
|
||||||
<div class="row animated flipInX col-md-6 col-sm-9 col-xs-12">
|
<div class="row animated flipInX col-md-8 col-sm-8 col-xs-8 cent-align">
|
||||||
<div class="alert alert-info" role="alert">
|
<div class="alert alert-info" role="alert">
|
||||||
<span class="glyphicon glyphicon-bell" area-hidden="true"></span>
|
<span class="glyphicon glyphicon-bell" area-hidden="true"></span>
|
||||||
<span class="glyphicon-class">You don't have a node. Please add nodes to do something in this page.</span>
|
<span class="glyphicon-class">You don't have a node. Please add nodes to do something in this page.</span>
|
||||||
@ -238,7 +238,7 @@
|
|||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="x_content tile fixed_height_160" style="overflow-y:auto;">
|
<div class="x_content tile fixed_height_160" style="overflow-y:auto;">
|
||||||
<% begin %>
|
<% if volumes.nil? %>
|
||||||
<div class="widget_summary">
|
<div class="widget_summary">
|
||||||
<% start = ((volumes.select{ |volume| volume["Status"].eql? " Started" }.length.to_f / volumes.length.to_f) * 100).to_i %>
|
<% start = ((volumes.select{ |volume| volume["Status"].eql? " Started" }.length.to_f / volumes.length.to_f) * 100).to_i %>
|
||||||
<div class="w_left w_25">
|
<div class="w_left w_25">
|
||||||
@ -273,9 +273,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<% rescue => ex %>
|
<% else %>
|
||||||
<div class="row animated flipInX col-md-6 col-sm-9 col-xs-12">
|
<div class="row animated flipInX col-md-8 col-sm-8 col-xs-8">
|
||||||
<div class="alert alert-info" role="alert">
|
<div class="alert alert-warning" role="alert">
|
||||||
<span class="glyphicon glyphicon-bell" area-hidden="true"></span>
|
<span class="glyphicon glyphicon-bell" area-hidden="true"></span>
|
||||||
<span class="glyphicon-class">You don't have a volume. Please add volumes to do something in this page.</span>
|
<span class="glyphicon-class">You don't have a volume. Please add volumes to do something in this page.</span>
|
||||||
</div>
|
</div>
|
||||||
@ -308,6 +308,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="x_content fixed_height_320" style="overflow-y:auto;">
|
<div class="x_content fixed_height_320" style="overflow-y:auto;">
|
||||||
<ul class="list-unstyled top_profiles" >
|
<ul class="list-unstyled top_profiles" >
|
||||||
|
<% if nodes.nil? %>
|
||||||
<% nodes.each do |node| %>
|
<% nodes.each do |node| %>
|
||||||
<li class="media event">
|
<li class="media event">
|
||||||
<% if node["ping"].eql? "true" %>
|
<% if node["ping"].eql? "true" %>
|
||||||
@ -328,6 +329,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<div class="row animated flipInX col-md-8 col-sm-8 col-xs-8">
|
||||||
|
<div class="alert alert-success" role="alert">
|
||||||
|
<span class="glyphicon glyphicon-bell" area-hidden="true"></span>
|
||||||
|
<span class="glyphicon-class">You don't have a node. Please add nodes to do something in this page.</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -355,8 +364,22 @@
|
|||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="x_content tile" id="disk_file_div">
|
<div class="x_content tile" id="disk_file_div">
|
||||||
|
|
||||||
|
<% if volumes.nil? or ( (volumes.select{ |volume| volume["Mount State"].eql? "mounted" }.length) == 0) %>
|
||||||
|
<div class="row animated flipInX col-md-8 col-sm-8 col-xs-8">
|
||||||
|
<div class="alert alert-error" role="alert">
|
||||||
|
<span class="glyphicon glyphicon-bell" area-hidden="true"></span>
|
||||||
|
<span class="glyphicon-class">You don't have a volume. Please add volumes to do something in this page.</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="display:none;">
|
||||||
<%= raw html_disk_file_table %>
|
<%= raw html_disk_file_table %>
|
||||||
</div>
|
</div>
|
||||||
|
<% else %>
|
||||||
|
|
||||||
|
<%= raw html_disk_file_table %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /disk usage -->
|
<!-- /disk usage -->
|
||||||
|
Loading…
Reference in New Issue
Block a user