mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
host/edit: show link to monitoring if available
This commit is contained in:
parent
2dd694f3ec
commit
343e5a8669
@ -31,6 +31,24 @@ class HostController extends ObjectController
|
||||
}
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
{
|
||||
parent::editAction();
|
||||
$host = $this->object;
|
||||
$mon = $this->monitoring();
|
||||
if ($host->isObject() && $mon->isAvailable() && $mon->hasHost($host->object_name)) {
|
||||
$this->view->actionLinks .= ' ' . $this->view->qlink(
|
||||
$this->translate('Show'),
|
||||
'monitoring/host/show',
|
||||
array('host' => $host->object_name),
|
||||
array(
|
||||
'class' => 'icon-globe critical',
|
||||
'data-base-target' => '_next'
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function servicesAction()
|
||||
{
|
||||
$host = $this->object;
|
||||
|
Loading…
x
Reference in New Issue
Block a user