Add mouse-over effect and host/service detail popup

refs #4187
This commit is contained in:
Johannes Meyer 2013-08-09 16:05:06 +02:00 committed by Eric Lippmann
parent f89d641b06
commit baaf5b81d9
1 changed files with 29 additions and 2 deletions

View File

@ -25,7 +25,7 @@ $notifications = $this->notifications->paginate();
echo $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve));
?>
<table class="statustable action hosts">
<table class="statustable action table-hover">
<thead>
<tr>
<th>Host</th>
@ -84,7 +84,7 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t
echo 'STALKING';
break;
default:
echo 'UNKNOWN';
echo 'N/A';
}
?>
</td>
@ -100,6 +100,33 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t
<td>
<?= $this->escape(substr(strip_tags($notification->notification_information), 0, 10000)); ?>
</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>
<?php endforeach; ?>
</tbody>