parent
f89d641b06
commit
baaf5b81d9
|
@ -25,7 +25,7 @@ $notifications = $this->notifications->paginate();
|
||||||
echo $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve));
|
echo $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table class="statustable action hosts">
|
<table class="statustable action table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Host</th>
|
<th>Host</th>
|
||||||
|
@ -84,7 +84,7 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t
|
||||||
echo 'STALKING';
|
echo 'STALKING';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
echo 'UNKNOWN';
|
echo 'N/A';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -100,6 +100,33 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t
|
||||||
<td>
|
<td>
|
||||||
<?= $this->escape(substr(strip_tags($notification->notification_information), 0, 10000)); ?>
|
<?= $this->escape(substr(strip_tags($notification->notification_information), 0, 10000)); ?>
|
||||||
</td>
|
</td>
|
||||||
|
<td><?php
|
||||||
|
if (intval($notification->notification_type) === 0) {
|
||||||
|
echo $this->qlink(
|
||||||
|
'',
|
||||||
|
'monitoring/show/host',
|
||||||
|
array(
|
||||||
|
'host' => $notification->host_name
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'class' => 'row-action'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
echo $this->qlink(
|
||||||
|
'',
|
||||||
|
'monitoring/show/service',
|
||||||
|
array(
|
||||||
|
'host' => $notification->host_name,
|
||||||
|
'service' => $notification->service_description
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'class' => 'row-action'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue