monitoring: New notification view

refs #5543
This commit is contained in:
Matthias Jentsch 2015-10-01 11:41:55 +02:00
parent db74f7e780
commit ece5df010b
1 changed files with 22 additions and 21 deletions

View File

@ -14,7 +14,7 @@ if (! $this->compact): ?>
</div>
<?php endif ?>
<div class="content">
<table data-base-target="_next" class="action">
<table data-base-target="_next" class="action action-table">
<tbody>
<?php foreach ($notifications as $notification):
if (isset($notification->service_description)) {
@ -25,11 +25,11 @@ if (! $this->compact): ?>
$stateName = Host::getStateText($notification->notification_state);
}
?>
<tr class="state <?= $stateName ?>">
<td class="state">
<tr>
<td class="state-col state-<?= $stateName ?>">
<?= $this->timeAgo($notification->notification_start_time, $this->compact) ?>
</td>
<td style="font-size: 0.8em">
<td>
<?php if ($isService): ?>
<?= $this->icon('service', $this->translate('Service')); ?>
<?= $this->link()->service(
@ -43,11 +43,9 @@ if (! $this->compact): ?>
<?= $this->icon('host', $this->translate('Host')); ?>
<?= $this->link()->host($notification->host_name, $notification->host_display_name) ?>
<?php endif ?>
<br>
<?= $this->pluginOutput($this->ellipsis($notification->notification_output, 10000), true) ?>
<br>
<?php if (! $this->contact): ?>
<small>
<span class="pull-right text-small">
<?php if ($notification->notification_contact_name): ?>
<?= sprintf(
$this->translate('Sent to %s'),
@ -60,8 +58,11 @@ if (! $this->compact): ?>
<?php else: ?>
<?= $this->translate('This notification was not sent out to any contact.'); ?>
<?php endif ?>
</small>
</span>
<?php endif ?>
<p class="plugin-output">
<?= $this->pluginOutput($this->ellipsis($notification->notification_output, 10000), true) ?>
</p>
</td>
</tr>
<?php endforeach ?>