Add proper titles to the checkstatistics component view

refs #8458
This commit is contained in:
Johannes Meyer 2015-02-23 17:26:42 +01:00
parent 74360ee8e6
commit 25e2baa566
1 changed files with 21 additions and 11 deletions

View File

@ -28,23 +28,33 @@ if ($object->getType() === $object::TYPE_HOST) {
<td>
<?php if ($this->hasPermission('monitoring/command/schedule-check')) {
if ($isService) {
$reschedule = $this->href(
echo $this->qlink(
$this->icon('reschedule') . ' ' . $this->translate('Reschedule'),
'monitoring/service/reschedule-check',
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
array(
'data-base-target' => '_self',
'title' => $this->translate(
'Schedule the next active check at a different time than the current one'
)
),
false
);
} else {
$reschedule = $this->href(
echo $this->qlink(
$this->icon('reschedule') . ' ' . $this->translate('Reschedule'),
'monitoring/host/reschedule-check',
array('host' => $object->getName())
array('host' => $object->getName()),
array(
'data-base-target' => '_self',
'title' => $this->translate(
'Schedule the next active check at a different time than the current one'
)
),
false
);
}
?>
<a href="<?= $reschedule ?>" data-base-target="_self">
<?= $this->icon('reschedule') ?>
<?= $this->translate('Reschedule') ?>
</a>
<?php } // endif ?>
<?= $this->timeUntil($object->next_check) ?>
} ?> <?= $this->timeUntil($object->next_check) ?>
</td>
</tr>
<tr>