Make color coding more logical

This commit is contained in:
bergware
2016-06-08 00:28:55 +02:00
parent 5c203b6d51
commit f81be4baec
2 changed files with 7 additions and 7 deletions

View File

@@ -50,9 +50,9 @@ if (isset($eth0)) foreach ($eth0 as $key => $val) if (substr($key,0,6)=='VLANID'
?>
<style>
span.pin i{font-size:16px;cursor:pointer;}
span.unset{color:#E68A00;}
span.member{color:#00529B;}
span.shut{color:#4F8A10;}
span.red{color:#E68A00;}
span.blue{color:#00529B;}
span.green{color:#4F8A10;}
div.shade-white{background-color:#F8F8F8;}
div.shade-black{background-color:#0C0C0C;}
</style>

View File

@@ -31,20 +31,20 @@ $cmd = 'Down';
if (strlen(exec("ip link show ethX|grep -om1 ',UP[,>]'"))==0) {
$more = true;
$reason = "Interface is shutdown (inactive)";
$class = 'shut';
$class = 'blue';
$cmd = 'Up';
} elseif ($bond_ethX) {
$more = true;
$reason = "Interface is member of ".$eth0['BONDNAME']." (see interface eth0)";
$class = 'member';
$class = 'green';
} elseif ($bridge_ethX) {
$more = true;
$reason = "Interface is member of ".$eth0['BRNAME']." (see interface eth0)";
$class = 'member';
$class = 'green';
} elseif (empty($ethX)) {
$more = true;
$reason = "Interface is not configured";
$class = 'unset';
$class = 'red';
} else {
$more = false;
}