Files
librenms-librenms/html/includes/print-event-short.inc.php

26 lines
541 B
PHP
Raw Normal View History

<?php
2015-07-13 20:10:26 +02:00
if ($bg == $list_colour_a) {
$bg = $list_colour_b;
} else {
2015-07-13 20:10:26 +02:00
$bg = $list_colour_a;
}
unset($icon);
$severity_colour = eventlog_severity($entry['severity']);
$icon = "<i class='fa fa-bookmark fa-lg $severity_colour' aria-hidden='true'></i>";
2015-07-13 20:10:26 +02:00
echo '<tr">
<td>'.$icon.'&nbsp;
2015-07-13 20:10:26 +02:00
'.$entry['humandate'].'
</td>
2015-07-13 20:10:26 +02:00
<td>';
2015-07-13 20:10:26 +02:00
if ($entry['type'] == 'interface') {
$entry['link'] = '<b>'.generate_port_link(getifbyid($entry['reference'])).'</b>';
}
2016-02-17 13:59:58 +00:00
echo $entry['link'].' '.htmlspecialchars($entry['message']).'</td>
2015-07-13 20:10:26 +02:00
</tr>';