Skip to content

Commit

Permalink
host status tips
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Apr 17, 2019
1 parent 8dce26a commit fd71538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/cmdb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
$.get("/cmdb/nodestatus/"+host+"/",function(data,status){
if ( data == "1" ) {
document.getElementById(host).style.color="green";
document.getElementById(host).title="Normal";
{# $(this).css('display','block');#}

}
else if (data == "2") {
document.getElementById(host).style.color="red";
document.getElementById(host).title="Error";
}
});
}
Expand Down Expand Up @@ -195,7 +197,7 @@
<tr class="even gradeX">
<td><input type="checkbox" id="id" class="i-checks" value="{{ host.id }}" name="id" /></td>
<td>
<span id="{{ host.hostname }}" class="fa fa-circle" aria-hidden="true" style="color: lightgray"></span>
<span id="{{ host.hostname }}" class="fa fa-circle" aria-hidden="true" style="color: lightgray" data-toggle="tooltip" data-placement="right" title="Unknow"></span>
</td>
<td><a href="#"><li style="list-style-type:none" onclick="return detail(this.value)" value="{{ host.id }}"> {{ host.hostname }}</li></a></td>
<td>{{ host.ip }}</td>
Expand Down

0 comments on commit fd71538

Please sign in to comment.