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