mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 05:30:07 -06:00
Make color coding more logical
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user