summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/widgets/widgets
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-04-13 05:54:08 +0545
committerPhil Davis <phil.davis@inf.org>2016-04-13 05:54:08 +0545
commitfa5f513658f7f1aba530e76e01dfbc021605c3ad (patch)
treeb13c5334b45029873b2286410034644b172e65e0 /src/usr/local/www/widgets/widgets
parentadaa4d036b3fac1c8e34e681650d693392048fbe (diff)
downloadpfsense-fa5f513658f7f1aba530e76e01dfbc021605c3ad.zip
pfsense-fa5f513658f7f1aba530e76e01dfbc021605c3ad.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.
Diffstat (limited to 'src/usr/local/www/widgets/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