diff --git a/modules/monitoring/application/controllers/HostsController.php b/modules/monitoring/application/controllers/HostsController.php index 632ca69ec..53b10e113 100644 --- a/modules/monitoring/application/controllers/HostsController.php +++ b/modules/monitoring/application/controllers/HostsController.php @@ -171,8 +171,7 @@ class Monitoring_HostsController extends Controller $this->view->objectsInDowntime = $objectsInDowntime; $this->view->inDowntimeLink = Url::fromPath('monitoring/list/downtimes') ->setQueryString(Filter::matchAny($downtimeFilterExpressions)->toQueryString()); - $this->view->commentsLink = Url::fromRequest() - ->setPath('monitoring/list/comments'); + $this->view->commentsLink = Url::fromRequest()->setPath('monitoring/list/comments'); } /** diff --git a/modules/monitoring/application/views/scripts/hosts/show.phtml b/modules/monitoring/application/views/scripts/hosts/show.phtml index ab92a2f04..cc62ba0f8 100644 --- a/modules/monitoring/application/views/scripts/hosts/show.phtml +++ b/modules/monitoring/application/views/scripts/hosts/show.phtml @@ -1,7 +1,3 @@ - -
compact): ?> @@ -183,35 +179,6 @@ use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm;

- - - fetchComments(); ?> - comments as $comment): ?> - - - - - - -
- populate( - array('comment_id' => $comment->id, 'redirect' => html_entity_decode($this->url)) - ); - $delCommentForm->setAction( - $this->url( - 'monitoring/host/delete-comment', - array('host' => $service->getName()) - ) - ); - echo $delCommentForm; - ?> - (type) ?>): - - comment) ?> -
-