Link to the event detail from the notifications view
This commit is contained in:
parent
99ff058561
commit
98388c4346
|
@ -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',
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue