diff --git a/modules/monitoring/application/views/scripts/show/components/command.phtml b/modules/monitoring/application/views/scripts/show/components/command.phtml index a74b5b884..771e0812c 100644 --- a/modules/monitoring/application/views/scripts/show/components/command.phtml +++ b/modules/monitoring/application/views/scripts/show/components/command.phtml @@ -6,26 +6,29 @@ $command = array_shift($parts); ?> - translate('Command') ?> + translate('Command'); ?> - escape($command) ?> - hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled): ?> - getType() === $object::TYPE_HOST) { - $processCheckResult = $this->href( + escape($command); ?> + hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled) { + $title = sprintf($this->translate('Submit a one time or so called passive result for the %s check'), $command); + if ($object->getType() === $object::TYPE_HOST) { + echo $this->qlink( + $this->icon('reply') . ' ' . $this->translate('Process check result'), 'monitoring/host/process-check-result', - array('host' => $object->getName()) + array('host' => $object->getName()), + array('data-base-target' => '_self', 'title' => $title), + false ); } else { - $processCheckResult = $this->href( + echo $this->qlink( + $this->icon('reply') . ' ' . $this->translate('Process check result'), 'monitoring/service/process-check-result', - array('host' => $object->getHost()->getName(), 'service' => $object->getName()) + array('host' => $object->getHost()->getName(), 'service' => $object->getName()), + array('data-base-target' => '_self', 'title' => $title), + false ); - } ?> - - icon('reply') ?> - translate('Process check result') ?> - - + } + } ?>