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
@@ -7,15 +7,18 @@ if ($bg == $list_colour_a) {
|
||||
}
|
||||
|
||||
unset($icon);
|
||||
$icon_returned = geteventicon($entry['message']);
|
||||
$icon_type = $icon_returned['icon'];
|
||||
$icon_colour = $icon_returned['colour'];
|
||||
|
||||
$icon = geteventicon($entry['message']);
|
||||
if ($icon) {
|
||||
$icon = "<img src='images/16/$icon'>";
|
||||
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>";
|
||||
}
|
||||
|
||||
echo '<tr">
|
||||
<td></td>
|
||||
<td>
|
||||
<td>'.$icon.'
|
||||
'.$entry['humandate'].'
|
||||
</td>
|
||||
<td>';
|
||||
@@ -25,5 +28,4 @@ if ($entry['type'] == 'interface') {
|
||||
}
|
||||
|
||||
echo $entry['link'].' '.htmlspecialchars($entry['message']).'</td>
|
||||
<td></td>
|
||||
</tr>';
|
||||
|
||||
Reference in New Issue
Block a user