Link to the event detail from the notifications view

This commit is contained in:
Eric Lippmann 2019-07-26 16:38:25 +02:00
parent 99ff058561
commit 98388c4346
3 changed files with 3 additions and 1 deletions

View File

@ -280,6 +280,7 @@ class ListController extends Controller
$this->setAutorefreshInterval(15);
$notifications = $this->backend->select()->from('notification', array(
'id',
'host_display_name',
'host_name',
'notification_contact_name',

View File

@ -31,7 +31,7 @@ if (! $this->compact): ?>
$stateName = Host::getStateText($notification->notification_state);
}
?>
<tr>
<tr href="<?= $this->href('monitoring/event/show', ['id' => $notification->id, 'type' => 'notify']) ?>">
<td class="state-col state-<?= $stateName ?>">
<div class="state-label"><?= $stateLabel ?></div>
<div class="state-meta">

View File

@ -22,6 +22,7 @@ class NotificationQuery extends IdoQuery
*/
protected $columnMap = array(
'notifications' => array(
'id' => 'n.id',
'instance_name' => 'n.instance_name',
'notification_contact_name' => 'n.notification_contact_name',
'notification_output' => 'n.notification_output',