diff options
author | Jared Dillard <jdillard@netgate.com> | 2016-03-02 13:38:03 -0600 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2016-03-02 13:38:03 -0600 |
commit | 7dbbf1f5a89202cfb60dc3bcc5cd76308266243d (patch) | |
tree | e61584febdad69efce4a6c93e45bad510244d855 /src/usr/local/www/status_gateway_groups.php | |
parent | 76bd03bb0ea2277ad149c9d3ac33965e0812d0f2 (diff) | |
download | pfsense-7dbbf1f5a89202cfb60dc3bcc5cd76308266243d.zip pfsense-7dbbf1f5a89202cfb60dc3bcc5cd76308266243d.tar.gz |
Ticket #5905 remove hardcoded colors
Diffstat (limited to 'src/usr/local/www/status_gateway_groups.php')
-rwxr-xr-x | src/usr/local/www/status_gateway_groups.php | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/usr/local/www/status_gateway_groups.php b/src/usr/local/www/status_gateway_groups.php index e670541..72e3cf8 100755 --- a/src/usr/local/www/status_gateway_groups.php +++ b/src/usr/local/www/status_gateway_groups.php @@ -65,12 +65,6 @@ ##|-PRIV define('COLOR', true); -define('LIGHTGREEN', '#90EE90'); -define('LIGHTCORAL', '#F08080'); -define('KHAKI', '#F0E68C'); -define('LIGHTGRAY', '#D3D3D3'); -define('LIGHTBLUE', '#ADD8E6'); -define('WHITE', '#FFFFFF'); require("guiconfig.inc"); @@ -156,26 +150,26 @@ display_top_tabs($tab_array); $status = $gateways_status[$monitor]['status']; if (stristr($status, "down")) { $online = gettext("Offline"); - $bgcolor = LIGHTCORAL; + $bgcolor = "bg-danger"; } elseif (stristr($status, "loss")) { $online = gettext("Warning, Packetloss"); - $bgcolor = KHAKI; + $bgcolor = "bg-warning"; } elseif (stristr($status, "delay")) { $online = gettext("Warning, Latency"); - $bgcolor = KHAKI; + $bgcolor = "bg-warning"; } elseif ($status == "none") { $online = gettext("Online"); - $bgcolor = LIGHTGREEN; + $bgcolor = "bg-success"; } else { $online = gettext("Gathering data"); - $bgcolor = LIGHTBLUE; + $bgcolor = "bg-info"; } if (!COLOR) { - $bgcolor = WHITE; + $bgcolor = ""; } ?> - <td style="background-color:<?=$bgcolor?>"> + <td class="<?=$bgcolor?>"> <?=htmlspecialchars($member);?>,<br/><?=$online?> </td> |