monitoring: Update comment-list styles in the downtimer overview
This commit is contained in:
parent
24d43899a7
commit
a6338fc744
|
@ -8,7 +8,7 @@
|
|||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<div class="comment-header">
|
||||
<div class="comment-author">
|
||||
<?php if ($isService): ?>
|
||||
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
|
||||
$downtime->host_display_name . ': ' . $downtime->service_display_name,
|
||||
|
@ -38,10 +38,11 @@
|
|||
)
|
||||
); ?>
|
||||
<?php endif ?>
|
||||
<span class="comment-meta">
|
||||
<span class="comment-time">
|
||||
<?= $this->translate('by') ?>
|
||||
<?= $this->escape($downtime->author_name) ?>
|
||||
<span class="meta-icons">
|
||||
</span>
|
||||
<span class="comment-icons">
|
||||
<?php if ($downtime->is_flexible): ?>
|
||||
<?= $this->icon('magic', $this->translate('This downtime is flexible')); ?>
|
||||
<?php endif ?>
|
||||
|
@ -50,8 +51,8 @@
|
|||
<?= $this->icon('plug', $this->translate('This downtime is in effect')); ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (isset($delDowntimeForm)): // Form is unset if the current user lacks the respective permission ?>
|
||||
<?php
|
||||
<?php if (isset($delDowntimeForm)) {
|
||||
// Form is unset if the current user lacks the respective permission
|
||||
$deleteButton = clone $delDowntimeForm;
|
||||
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteDowntimeCommandForm $deleteButton */
|
||||
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
|
||||
|
@ -62,9 +63,7 @@
|
|||
)
|
||||
);
|
||||
echo $deleteButton;
|
||||
?>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
} ?>
|
||||
</span>
|
||||
</div>
|
||||
<p class="comment-text">
|
||||
|
|
Loading…
Reference in New Issue