hasPermission('monitoring/command/downtime/schedule')) { /** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */ if ($object->getType() === $object::TYPE_HOST) { $addLink = $this->qlink( $this->translate('Schedule downtime'), 'monitoring/host/schedule-downtime', array('host' => $object->getName()), array( 'class' => 'action-link', 'data-base-target' => '_self', 'icon' => 'plug', 'title' => $this->translate( 'Schedule a downtime to suppress all problem notifications within a specific period of time' ) ) ); } else { $addLink = $this->qlink( $this->translate('Schedule downtime'), 'monitoring/service/schedule-downtime', array('host' => $object->getHost()->getName(), 'service' => $object->getName()), array( 'class' => 'action-link', 'data-base-target' => '_self', 'icon' => 'plug', 'title' => $this->translate( 'Schedule a downtime to suppress all problem notifications within a specific period of time' ) ) ); } } if (empty($object->comments) && ! $addLink) { return; } ?>
= $this->translate('Downtime') ?>
= $state ?> -
= str_replace(array('\r\n', '\n'), '
', $this->createTicketLinks($downtime->comment)) ?>