diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml index 4aa1e21c1..16f12f6ba 100644 --- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml +++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml @@ -1,27 +1,38 @@ - translate('Downtimes') ?> + translate('Downtimes'); ?> hasPermission('monitoring/command/downtime/schedule')) { /** @type \Icinga\Module\Monitoring\Object\MonitoredObject $object */ if ($object->getType() === $object::TYPE_HOST) { - $scheduleDowntimeLink = $this->href( + echo $this->qlink( + $this->icon('plug') . ' ' . $this->translate('Schedule downtime'), 'monitoring/host/schedule-downtime', - array('host' => $object->getName()) + array('host' => $object->getName()), + array( + 'data-base-target' => '_self', + 'title' => $this->translate( + 'Schedule a downtime to suppress all problem notifications within a specific period of time' + ) + ), + false ); } else { - $scheduleDowntimeLink = $this->href( + echo $this->qlink( + $this->icon('plug') . ' ' . $this->translate('Schedule downtime'), 'monitoring/service/schedule-downtime', - 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 a downtime to suppress all problem notifications within a specific period of time' + ) + ), + false ); } - ?> - - icon('plug') ?> - translate('Schedule downtime') ?> - - + } ?>