summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/widgets
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-04-13 05:54:08 +0545
committerStephen Beaver <sbeaver@netgate.com>2016-04-13 09:13:50 -0400
commita0d8a2f42c68ac746b655719359ea414fca6fca4 (patch)
treeca7b23408763d340dd3ad1a432d6c46548c4838d /src/usr/local/www/widgets
parentfee16977d2e3f01f9796f9ed88bd54bbe3827c5c (diff)
downloadpfsense-a0d8a2f42c68ac746b655719359ea414fca6fca4.zip
pfsense-a0d8a2f42c68ac746b655719359ea414fca6fca4.tar.gz
Use consistent arrow colors on dashboard
Interfaces widget and IPsec widget use text-success and text-danger to make the up and down arrows be green and red. This change does the same thing to OpenVPN and WoL widgets for consistency. (cherry picked from commit fa5f513658f7f1aba530e76e01dfbc021605c3ad)
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r--src/usr/local/www/widgets/widgets/openvpn.widget.php8
-rw-r--r--src/usr/local/www/widgets/widgets/wake_on_lan.widget.php6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/local/www/widgets/widgets/openvpn.widget.php b/src/usr/local/www/widgets/widgets/openvpn.widget.php
index 756b235..671c254 100644
--- a/src/usr/local/www/widgets/widgets/openvpn.widget.php
+++ b/src/usr/local/www/widgets/widgets/openvpn.widget.php
@@ -178,10 +178,10 @@ $clients = openvpn_get_active_clients();
<?php
if ($sk_server['status'] == "up") {
/* tunnel is up */
- echo '<i class="fa fa-arrow-up"></i>';
+ echo '<i class="fa fa-arrow-up text-success"></i>';
} else {
/* tunnel is down */
- echo '<i class="fa fa-arrow-down"></i>';
+ echo '<i class="fa fa-arrow-down text-danger"></i>';
}
?>
</td>
@@ -228,10 +228,10 @@ $clients = openvpn_get_active_clients();
<?php
if ($client['status'] == "up") {
/* tunnel is up */
- echo '<i class="fa fa-arrow-up"></i>';
+ echo '<i class="fa fa-arrow-up text-success"></i>';
} else {
/* tunnel is down */
- echo '<i class="fa fa-arrow-down"></i>';
+ echo '<i class="fa fa-arrow-down text-danger"></i>';
}
?>
diff --git a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php
index 60628b9..0704691 100644
--- a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php
+++ b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php
@@ -93,11 +93,11 @@ if (count($wolcomputers) > 0):
</td>
<td>
<?php if ($status == 'expires'): ?>
- <i class="fa fa-arrow-up" data-toggle="tooltip" title="<?= gettext("Online") ?>"></i>
+ <i class="fa fa-arrow-up text-success" data-toggle="tooltip" title="<?= gettext("Online") ?>"></i>
<?php elseif ($status == 'permanent'): ?>
- <i class="fa fa-arrow-up" data-toggle="tooltip" title="<?= gettext("Static ARP") ?>"></i>
+ <i class="fa fa-arrow-up text-success" data-toggle="tooltip" title="<?= gettext("Static ARP") ?>"></i>
<?php else: ?>
- <i class="fa fa-arrow-down" data-toggle="tooltip" title="<?= gettext("Offline") ?>"></i>
+ <i class="fa fa-arrow-down text-danger" data-toggle="tooltip" title="<?= gettext("Offline") ?>"></i>
<?php endif; ?>
</td>
<td>
OpenPOWER on IntegriCloud