mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:16:58 +02:00
make stats red when they become stale
This commit is contained in:
parent
b01b2a3311
commit
4f7a8473fd
2 changed files with 9 additions and 1 deletions
|
@ -39,3 +39,7 @@
|
||||||
span.port {
|
span.port {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stale {
|
||||||
|
color: red;
|
||||||
|
}
|
|
@ -15,7 +15,7 @@ $(document).ready(function(){
|
||||||
$.getJSON("/nodes/" + uuid + ".json", function(json){
|
$.getJSON("/nodes/" + uuid + ".json", function(json){
|
||||||
|
|
||||||
// update the table header with the right node type
|
// update the table header with the right node type
|
||||||
$('#stats-lead h3').html(json.node_type + " stats (" + uuid +);
|
$('#stats-lead h3').html(json.node_type + " stats (" + uuid + ")");
|
||||||
|
|
||||||
delete json.node_type;
|
delete json.node_type;
|
||||||
|
|
||||||
|
@ -27,6 +27,10 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#stats-table tbody').html(statsTableBody);
|
$('#stats-table tbody').html(statsTableBody);
|
||||||
|
}).fail(function(data) {
|
||||||
|
$('#stats-table td').each(function(){
|
||||||
|
$(this).addClass('stale');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue