Added colors to Status

This commit is contained in:
Ziver Koc 2015-04-28 21:01:40 +00:00
parent 2cdd61458f
commit d1b245f55d
2 changed files with 11 additions and 1 deletions

View file

@ -54,3 +54,13 @@ body{
height: 35px;
background-color: #f5f5f5;
}
.red{
color: #a94442;
}
.green{
color: #3c763d;
}
.yellow{
color: #8a6d3b;
}

View file

@ -103,7 +103,7 @@ function updateNet(){
$(element).find(".net-total-tx").html(byteToString(net.total_tx));
$(element).find(".net-dropped").html(net.dropped);
$(element).find(".net-error").html(net.error);
$(element).find(".net-up").html( (net.up ? "UP" : "DOWN") );
$(element).find(".net-up").html( (net.up ? "<b class='green'>UP</b>" : "<b class='red'>DOWN</b>") );
$(element).find(".net-ip").html(net.ip);
$(element).find(".net-netmask").html(net.netmask);
$(element).find(".net-mac").html(net.mac);