summaryrefslogtreecommitdiffstats
path: root/usr/local/www/includes/functions.inc.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-05 17:43:48 +0545
committerPhil Davis <phil.davis@inf.org>2014-12-05 17:43:48 +0545
commitbeb7d9e33261c5d3e7fa387f7d61054f0c55ad99 (patch)
tree3b4d71cc2ca7d9defbb000028fe0dc2e24f86348 /usr/local/www/includes/functions.inc.php
parent6404148cf3d8a81fcd6333a923fe41dd91ae78d2 (diff)
downloadpfsense-beb7d9e33261c5d3e7fa387f7d61054f0c55ad99.zip
pfsense-beb7d9e33261c5d3e7fa387f7d61054f0c55ad99.tar.gz
Explicitly pass gateway status and color
This code was passing a whole load of html to attempt to set various properties of the Gateways Widget Status column so that it would display the new status (Online, Offline...) and in the appropriate color. Now that I am using class=listr, the css fro listr already specifies white. Setting bgcolor in HTML does not override that. Pass both the status text and color as ordinary text, separated by "/". The consumer of this output can do their thing with jQuery to set the color as well as text of the element.
Diffstat (limited to 'usr/local/www/includes/functions.inc.php')
-rw-r--r--usr/local/www/includes/functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php
index 673e318..e8203f6 100644
--- a/usr/local/www/includes/functions.inc.php
+++ b/usr/local/www/includes/functions.inc.php
@@ -73,7 +73,7 @@ function get_gatewaystats() {
$bgcolor = "#ADD8E6"; // lightblue
}
$data .= ($online == "Pending") ? "{$online},{$online}," : "{$gws['delay']},{$gws['loss']},";
- $data .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" style=\"table-layout: fixed;\" summary=\"status\"><tr><td bgcolor=\"$bgcolor\">&nbsp;$online&nbsp;</td></tr></table>";
+ $data .= "{$online}/{$bgcolor}";
}
return $data;
}
OpenPOWER on IntegriCloud