mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
monitoring: Use comment-list markup for acknowledgements instead of feed-list
refs #5543
This commit is contained in:
parent
0b332bba22
commit
acb01dc07a
@ -15,38 +15,40 @@ if ($object->acknowledged): ?>
|
||||
<tr>
|
||||
<th><?= $this->translate('Acknowledged') ?></th>
|
||||
<td data-base-target="_self">
|
||||
<dl class="feed-list">
|
||||
<dt class="feed-author clearfix">
|
||||
<dl class="comment-list">
|
||||
<dt class="comment-header">
|
||||
<?= $this->escape($acknowledgement->getAuthor()) ?>
|
||||
<span class="text-small"><?= $this->translate('acknowledged') ?></span>
|
||||
<span class="comment-meta">
|
||||
<?= $this->translate('acknowledged') ?>
|
||||
<?= $this->timeAgo($acknowledgement->getEntryTime()) ?>
|
||||
<?php
|
||||
if ($acknowledgement->getSticky()) {
|
||||
echo $this->icon('pin', sprintf(
|
||||
$this->translate(
|
||||
'Acknowledgement remains until the %1$s recovers even if the %1$s changes state'
|
||||
),
|
||||
$object->getType(true)
|
||||
));
|
||||
}
|
||||
if (isset($removeAckForm)) {
|
||||
$removeAckForm->setAttrib('class', $removeAckForm->getAttrib('class') . ' pull-right');
|
||||
// Form is unset if the current user lacks the respective permission
|
||||
echo $removeAckForm;
|
||||
}
|
||||
?>
|
||||
</dt>
|
||||
<dd class="comment-text">
|
||||
<?= nl2br($this->createTicketLinks($acknowledgement->getComment()), false) ?>
|
||||
</dd>
|
||||
<?php if ($acknowledgement->expires()): ?>
|
||||
<dd class="text-small">
|
||||
<span aria-hidden="true">ǀ</span>
|
||||
<?= sprintf(
|
||||
$this->translate('Expires %s'),
|
||||
$this->timeUntil($acknowledgement->getExpirationTime())
|
||||
) ?>
|
||||
</dd>
|
||||
<?php endif ?>
|
||||
<?php if ($acknowledgement->getSticky()): ?>
|
||||
<?= $this->icon('pin', sprintf(
|
||||
$this->translate(
|
||||
'Acknowledgement remains until the %1$s recovers even if the %1$s changes state'
|
||||
),
|
||||
$object->getType(true)
|
||||
)) ?>
|
||||
<?php endif ?>
|
||||
<?php if (isset($removeAckForm)): // Form is unset if the current user lacks the respective permission ?>
|
||||
<span class="meta-icons">
|
||||
<?php
|
||||
$removeAckForm->setAttrib('class', $removeAckForm->getAttrib('class') . ' remove-comment');
|
||||
echo $removeAckForm;
|
||||
?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
</dt>
|
||||
<dd class="comment-text">
|
||||
<p><?= nl2br($this->createTicketLinks($acknowledgement->getComment()), false) ?></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user