This commit is contained in:
bee0005 2016-10-03 07:06:06 +00:00
parent a6c6c8b488
commit d7320e22b0
4 changed files with 11 additions and 4 deletions

View File

@ -302,7 +302,7 @@
</a>
<% end %>
<div class="media-body">
<a class="title" href="/node/detail/<%= node["id"] %>"><%= node["host_name"] %></a>
<a class="title" onclick="loading();" href="/node/detail/<%= node["id"] %>"><%= node["host_name"] %></a>
<p><strong><%= node["host_ip"] %> </strong> <%= node["user_name"] %> </p>
<% if node["gluster"].eql? "on" %>
<p> <small> number of peers: <%= node["number_of_peers"] %></small></p>
@ -352,6 +352,7 @@
<!-- On ready -->
<script>
$(document).ready(function() {
var du = [];
<% get_du.each_with_index do |du, index| %>

View File

@ -10,7 +10,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<script>
function loading(){
$(location).attr('href',"#loading");
}
</script>
<div id="loading" class="overlay">
<div class="sk-fading-circle" class="overlay">
<div class="sk-circle1 sk-circle"></div>

View File

@ -142,7 +142,7 @@
<% else %>
<td><i class="fa fa-close red"></i> Not operational</td>
<% end %>
<th scope="row"> <a href="/node/detail/<%= node["id"] %>"><%= node["host_name"] %></a></th>
<th scope="row"> <a onclick="loading();" href="/node/detail/<%= node["id"] %>"><%= node["host_name"] %></a></th>
<td><%= node["host_ip"] %></td>
<td><%= node["user_name"] %></td>
<td><a href="/node/delete/<%= node["id"] %>"><i class="fa fa-trash"></i></a></td>
@ -284,6 +284,8 @@
</div>
<!-- /page content -->
<script>
$('.probe').change(function() {
$(location).attr('href',"#loading");
if($(this).is(":checked")) {

View File

@ -145,7 +145,7 @@
<% else %>
<td><i class="fa fa-close red"></i> Not operational</td>
<% end %>
<th scope="row"> <a href="/node/detail/<%= node["id"] %>"><%= node["host_name"] %></a></th>
<th scope="row"> <a onclick="loading();" href="/node/detail/<%= node["id"] %>"><%= node["host_name"] %></a></th>
<td><%= node["host_ip"] %></td>
<td><%= node["user_name"] %></td>
<td><a href="/node/delete/<%= node["id"] %>"><i class="fa fa-trash"></i></a></td>