mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: New eventlog severity classification (#5830)
* New event log severity model * Revert "New event log severity model" This reverts commit0783527af8. * New event log severity model * Fixed spaces vs tabs * Learning the format requirements * Learning the format requirements * Moved the colours in to the stylesheet * change SQL file to stop conflicting * refactor log_event so severity isn't last, but reference is. * keep having to move the file due to new PR conflicts * Revert "keep having to move the file due to new PR conflicts" This reverts commitf3030e7218. * extended support to dashboard and eventlog page * formatting
This commit is contained in:
committed by
Neil Lathwood
parent
a75ec7ab31
commit
5bfd23e7eb
@@ -3,15 +3,9 @@
|
||||
$hostname = gethostbyid($entry['host']);
|
||||
|
||||
unset($icon);
|
||||
$icon_returned = geteventicon($entry['message']);
|
||||
$icon_type = $icon_returned['icon'];
|
||||
$icon_colour = $icon_returned['colour'];
|
||||
$severity_colour = eventlog_severity($entry['severity']);
|
||||
|
||||
if ($icon_type) {
|
||||
$icon = "<i class='fa $icon_type fa-lg' style='color:$icon_colour' aria-hidden='true'></i>";
|
||||
} else {
|
||||
$icon = "<i class='fa fa-bookmark-o fa-lg' style='color:black' aria-hidden='true'></i>";
|
||||
}
|
||||
$icon = "<i class='fa fa-bookmark fa-lg $severity_colour' aria-hidden='true'></i>";
|
||||
|
||||
echo '<tr>
|
||||
<td>'.$icon.'
|
||||
|
||||
Reference in New Issue
Block a user