mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
parent
74360ee8e6
commit
25e2baa566
@ -28,23 +28,33 @@ if ($object->getType() === $object::TYPE_HOST) {
|
|||||||
<td>
|
<td>
|
||||||
<?php if ($this->hasPermission('monitoring/command/schedule-check')) {
|
<?php if ($this->hasPermission('monitoring/command/schedule-check')) {
|
||||||
if ($isService) {
|
if ($isService) {
|
||||||
$reschedule = $this->href(
|
echo $this->qlink(
|
||||||
|
$this->icon('reschedule') . ' ' . $this->translate('Reschedule'),
|
||||||
'monitoring/service/reschedule-check',
|
'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 {
|
} else {
|
||||||
$reschedule = $this->href(
|
echo $this->qlink(
|
||||||
|
$this->icon('reschedule') . ' ' . $this->translate('Reschedule'),
|
||||||
'monitoring/host/reschedule-check',
|
'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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
?>
|
} ?> <?= $this->timeUntil($object->next_check) ?>
|
||||||
<a href="<?= $reschedule ?>" data-base-target="_self">
|
|
||||||
<?= $this->icon('reschedule') ?>
|
|
||||||
<?= $this->translate('Reschedule') ?>
|
|
||||||
</a>
|
|
||||||
<?php } // endif ?>
|
|
||||||
<?= $this->timeUntil($object->next_check) ?>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user