Added colors to Status
This commit is contained in:
parent
2cdd61458f
commit
d1b245f55d
2 changed files with 11 additions and 1 deletions
|
|
@ -54,3 +54,13 @@ body{
|
||||||
height: 35px;
|
height: 35px;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.red{
|
||||||
|
color: #a94442;
|
||||||
|
}
|
||||||
|
.green{
|
||||||
|
color: #3c763d;
|
||||||
|
}
|
||||||
|
.yellow{
|
||||||
|
color: #8a6d3b;
|
||||||
|
}
|
||||||
|
|
@ -103,7 +103,7 @@ function updateNet(){
|
||||||
$(element).find(".net-total-tx").html(byteToString(net.total_tx));
|
$(element).find(".net-total-tx").html(byteToString(net.total_tx));
|
||||||
$(element).find(".net-dropped").html(net.dropped);
|
$(element).find(".net-dropped").html(net.dropped);
|
||||||
$(element).find(".net-error").html(net.error);
|
$(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-ip").html(net.ip);
|
||||||
$(element).find(".net-netmask").html(net.netmask);
|
$(element).find(".net-netmask").html(net.netmask);
|
||||||
$(element).find(".net-mac").html(net.mac);
|
$(element).find(".net-mac").html(net.mac);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue