mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Final Font Awesome conversion (#5652)
This commit is contained in:
committed by
Neil Lathwood
parent
f2e6cfbe87
commit
5be1ea9132
@@ -710,32 +710,38 @@ function print_optionbar_end()
|
||||
|
||||
function geteventicon($message)
|
||||
{
|
||||
if ($message == 'Device status changed to Down') {
|
||||
$icon = 'server_connect.png';
|
||||
if ($message == 'Device status changed to Down from check') {
|
||||
$icon = 'fa-bookmark';
|
||||
$icon_colour = 'red';
|
||||
}
|
||||
|
||||
if ($message == 'Device status changed to Up') {
|
||||
$icon = 'server_go.png';
|
||||
if ($message == 'Device status changed to Up from check') {
|
||||
$icon = 'fa-bookmark';
|
||||
$icon_colour = 'green';
|
||||
}
|
||||
|
||||
if ($message == 'Interface went down' || $message == 'Interface changed state to Down') {
|
||||
$icon = 'if-disconnect.png';
|
||||
if ($message == 'Interface went down' || $message == 'Interface changed state to Down' || $message == 'ifOperStatus: up -> down') {
|
||||
$icon = 'fa-bookmark';
|
||||
$icon_colour = 'red';
|
||||
}
|
||||
|
||||
if ($message == 'Interface went up' || $message == 'Interface changed state to Up') {
|
||||
$icon = 'if-connect.png';
|
||||
if ($message == 'Interface went up' || $message == 'Interface changed state to Up' || $message == 'ifOperStatus: down -> up') {
|
||||
$icon = 'fa-bookmark';
|
||||
$icon_colour = 'green';
|
||||
}
|
||||
|
||||
if ($message == 'Interface disabled') {
|
||||
$icon = 'if-disable.png';
|
||||
if ($message == 'Interface disabled' || $message == 'ifAdminStatus: up -> down') {
|
||||
$icon = 'fa-bookmark';
|
||||
$icon_colour = 'grey';
|
||||
}
|
||||
|
||||
if ($message == 'Interface enabled') {
|
||||
$icon = 'if-enable.png';
|
||||
if ($message == 'Interface enabled' || $message == 'ifAdminStatus: down -> up') {
|
||||
$icon = 'fa-bookmark';
|
||||
$icon_colour = 'green';
|
||||
}
|
||||
|
||||
if (isset($icon)) {
|
||||
return $icon;
|
||||
return array('icon' => $icon,'colour' => $icon_colour);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user