mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-16 10:24:27 +02:00
monitoring/detail: Display the comment of the ack next to the ack
refs #9674
This commit is contained in:
parent
f0e8340fbd
commit
2da49ad697
@ -8,14 +8,32 @@ if (in_array((int) $object->state, array(0, 99))) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($object->acknowledged): ?>
|
if ($object->acknowledged): ?>
|
||||||
|
<?php
|
||||||
|
$acknowledgement = $object->acknowledgement;
|
||||||
|
/** @var \Icinga\Module\Monitoring\Object\Acknowledgement $acknowledgement */
|
||||||
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= $this->translate('Acknowledged') ?></th>
|
<th><?= $this->translate('Acknowledged') ?></th>
|
||||||
<td data-base-target="_self">
|
<td data-base-target="_self">
|
||||||
<?php if (isset($removeAckForm)) { // Form is unset if the current user lacks the respective permission
|
<ul class="inline-comments">
|
||||||
echo $removeAckForm;
|
<li class="comment-item">
|
||||||
} else {
|
<h3>
|
||||||
echo '-';
|
<?= sprintf(
|
||||||
} ?>
|
$this->translate('%s acknowledged %s'),
|
||||||
|
'<span class="author">' . $this->escape($acknowledgement->getAuthor()) . '</span>',
|
||||||
|
$this->timeAgo($acknowledgement->getEntryTime())
|
||||||
|
) ?>
|
||||||
|
<?php if (isset($removeAckForm)) {
|
||||||
|
// Form is unset if the current user lacks the respective permission
|
||||||
|
echo $removeAckForm;
|
||||||
|
} ?>
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
<span class="sr-only">(<?= $this->translate('Comment') ?>): </span>
|
||||||
|
<?= nl2br($this->createTicketLinks($acknowledgement->getComment()), false) ?>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user