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

View File

@ -8,7 +8,7 @@
<?php endif; ?> <?php endif; ?>
</td> </td>
<td> <td>
<div class="comment-header"> <div class="comment-author">
<?php if ($isService): ?> <?php if ($isService): ?>
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink( <?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
$downtime->host_display_name . ': ' . $downtime->service_display_name, $downtime->host_display_name . ': ' . $downtime->service_display_name,
@ -38,33 +38,32 @@
) )
); ?> ); ?>
<?php endif ?> <?php endif ?>
<span class="comment-meta"> <span class="comment-time">
<?= $this->translate('by') ?> <?= $this->translate('by') ?>
<?= $this->escape($downtime->author_name) ?> <?= $this->escape($downtime->author_name) ?>
<span class="meta-icons"> </span>
<?php if ($downtime->is_flexible): ?> <span class="comment-icons">
<?= $this->icon('magic', $this->translate('This downtime is flexible')); ?> <?php if ($downtime->is_flexible): ?>
<?php endif ?> <?= $this->icon('magic', $this->translate('This downtime is flexible')); ?>
<?php endif ?>
<?php if ($downtime->is_in_effect): ?> <?php if ($downtime->is_in_effect): ?>
<?= $this->icon('plug', $this->translate('This downtime is in effect')); ?> <?= $this->icon('plug', $this->translate('This downtime is in effect')); ?>
<?php endif ?> <?php endif ?>
<?php if (isset($delDowntimeForm)): // Form is unset if the current user lacks the respective permission ?> <?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');
$deleteButton->populate( $deleteButton->populate(
array( array(
'downtime_id' => $downtime->id, 'downtime_id' => $downtime->id,
'downtime_is_service' => isset($downtime->service_description) 'downtime_is_service' => isset($downtime->service_description)
) )
); );
echo $deleteButton; echo $deleteButton;
?> } ?>
<?php endif ?>
</span>
</span> </span>
</div> </div>
<p class="comment-text"> <p class="comment-text">