diff --git a/modules/monitoring/application/views/scripts/show/components/comments.phtml b/modules/monitoring/application/views/scripts/show/components/comments.phtml index 3db9de338..37a832358 100644 --- a/modules/monitoring/application/views/scripts/show/components/comments.phtml +++ b/modules/monitoring/application/views/scripts/show/components/comments.phtml @@ -1,7 +1,5 @@ hasPermission('monitoring/command/comment/add')) { /** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */ if ($object->getType() === $object::TYPE_HOST) { @@ -28,55 +26,49 @@ if ($this->hasPermission('monitoring/command/comment/add')) { ); } } - if (empty($object->comments) && ! $addLink) { return; } - ?> translate('Comments'); - if (! empty($object->comments) && $addLink) { echo '
' . $addLink; } - ?> -comments)): ?> - - - +