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

View File

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

View File

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

View File

@ -145,7 +145,7 @@
<% else %> <% else %>
<td><i class="fa fa-close red"></i> Not operational</td> <td><i class="fa fa-close red"></i> Not operational</td>
<% end %> <% 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["host_ip"] %></td>
<td><%= node["user_name"] %></td> <td><%= node["user_name"] %></td>
<td><a href="/node/delete/<%= node["id"] %>"><i class="fa fa-trash"></i></a></td> <td><a href="/node/delete/<%= node["id"] %>"><i class="fa fa-trash"></i></a></td>