diff options
author | Jared Dillard <jdillard@netgate.com> | 2015-11-25 18:39:22 -0600 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2015-11-25 18:42:50 -0600 |
commit | 2fdc35d5f100fea6b2ff796c656ca7cfb812ea2c (patch) | |
tree | 373f283b259cc6f30b0232383ecd3ddc6dfffad5 /src/usr/local/www | |
parent | 76bec1ab8790964c9714f7f8497edfa1a6c53409 (diff) | |
download | pfsense-2fdc35d5f100fea6b2ff796c656ca7cfb812ea2c.zip pfsense-2fdc35d5f100fea6b2ff796c656ca7cfb812ea2c.tar.gz |
clean up inline styles
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/widgets/widgets/load_balancer_status.widget.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/usr/local/www/widgets/widgets/load_balancer_status.widget.php b/src/usr/local/www/widgets/widgets/load_balancer_status.widget.php index c2a94a0..7ec965f 100644 --- a/src/usr/local/www/widgets/widgets/load_balancer_status.widget.php +++ b/src/usr/local/www/widgets/widgets/load_balancer_status.widget.php @@ -101,21 +101,21 @@ if (!$nentries) { <?php switch (trim($rdr_a[$vsent['name']]['status'])) { case 'active': - $bgcolor = "#90EE90"; // lightgreen + $bgcolor = "success"; $rdr_a[$vsent['name']]['status'] = "Active"; break; case 'down': - $bgcolor = "#F08080"; // lightcoral + $bgcolor = "danger"; $rdr_a[$vsent['name']]['status'] = "Down"; break; default: - $bgcolor = "#D3D3D3"; // lightgray + $bgcolor = "info"; $rdr_a[$vsent['name']]['status'] = 'Unknown - relayd not running?'; } ?> <td> <?=$vsent['name'];?><br /> - <span style="background-color: <?=$bgcolor?>; display: block"><i><?=$rdr_a[$vsent['name']]['status']?></i></span> + <span class="bg-<?=$bgcolor?>" style="display: block"><i><?=$rdr_a[$vsent['name']]['status']?></i></span> <?=$vsent['ipaddr'].":".$vsent['port'];?><br /> </td> <td> @@ -143,19 +143,19 @@ if (!$nentries) { switch ($server['ip']['state']) { case 'up': - $bgcolor = "#90EE90"; // lightgreen + $bgcolor = "success"; $checked = "checked"; break; case 'disabled': - $bgcolor = "#FFFFFF"; // white + $bgcolor = "info"; $checked = ""; break; default: - $bgcolor = "#F08080"; // lightcoral + $bgcolor = "danger"; $checked = "checked"; } ?> - <tr style="background-color: <?=$bgcolor?>"> + <tr class="bg-<?=$bgcolor?>"> <td><?=$server['ip']['addr']?>:<?=$pool['port']?></td> <td> <?php if($server['ip']['avail']): ?> |