monitoring: Update comment-list styles in the downtimer overview

This commit is contained in:
Eric Lippmann 2015-11-20 15:34:18 +01:00
parent 24d43899a7
commit a6338fc744
1 changed files with 23 additions and 24 deletions

View File

@ -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">