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.
This commit is contained in:
Phil Davis 2016-04-13 05:54:08 +05:45
parent adaa4d036b
commit fa5f513658
2 changed files with 7 additions and 7 deletions

View File

@ -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>';
}
?>

View File

@ -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>