mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
monitoring: Update comment-list styles in components/downtime.phtml
This commit is contained in:
parent
7858343605
commit
8d9c0ca69e
@ -73,16 +73,16 @@ if (empty($object->comments) && ! $addLink) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<dt class="comment-header">
|
<dt>
|
||||||
<?= $this->escape($downtime->author_name) ?>
|
<?= $this->escape($downtime->author_name) ?>
|
||||||
<span class="comment-meta">
|
<span class="comment-time">
|
||||||
<?= $this->translate('created') ?>
|
<?= $this->translate('created') ?>
|
||||||
<?= $this->timeAgo($downtime->entry_time) ?>
|
<?= $this->timeAgo($downtime->entry_time) ?>
|
||||||
<span aria-hidden="true">ǀ</span>
|
<span aria-hidden="true">ǀ</span>
|
||||||
<?= $state ?>
|
<?= $state ?>
|
||||||
<?php if (isset($delDowntimeForm)): // Form is unset if the current user lacks the respective permission ?>
|
</span>
|
||||||
<span class="meta-icons">
|
<?php if (isset($delDowntimeForm)) {
|
||||||
<?php
|
// Form is unset if the current user lacks the respective permission
|
||||||
$deleteButton = clone($delDowntimeForm);
|
$deleteButton = clone($delDowntimeForm);
|
||||||
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteDowntimeCommandForm $deleteButton */
|
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteDowntimeCommandForm $deleteButton */
|
||||||
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
|
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
|
||||||
@ -93,13 +93,10 @@ if (empty($object->comments) && ! $addLink) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
echo $deleteButton;
|
echo $deleteButton;
|
||||||
?>
|
} ?>
|
||||||
</span>
|
|
||||||
<?php endif ?>
|
|
||||||
</span>
|
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="comment-text">
|
<dd>
|
||||||
<p><?= nl2br($this->createTicketLinks($this->escape($downtime->comment)), false) ?></p>
|
<?= nl2br($this->createTicketLinks($this->escape($downtime->comment)), false) ?>
|
||||||
</dd>
|
</dd>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</dl>
|
</dl>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user