mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
ServiceController: show host if any
This commit is contained in:
parent
e639790d52
commit
9ccab4c9cf
@ -80,6 +80,14 @@ class ServiceController extends ObjectController
|
|||||||
public function editAction()
|
public function editAction()
|
||||||
{
|
{
|
||||||
parent::editAction();
|
parent::editAction();
|
||||||
|
|
||||||
|
if ($this->host) {
|
||||||
|
$this->view->subtitle = sprintf(
|
||||||
|
$this->translate('(on %s)'),
|
||||||
|
$this->host->object_name
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$object = $this->object;
|
$object = $this->object;
|
||||||
if ($object->isTemplate()
|
if ($object->isTemplate()
|
||||||
&& $object->getResolvedProperty('check_command_id')
|
&& $object->getResolvedProperty('check_command_id')
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<h1><?= $this->escape($this->title) ?></h1>
|
<h1><?= $this->escape($this->title) ?><?php
|
||||||
|
if ($this->subtitle) {
|
||||||
|
echo ' <small>' . $this->escape($this->subtitle) . '</small>';
|
||||||
|
}
|
||||||
|
?></h1>
|
||||||
<span class="action-links">
|
<span class="action-links">
|
||||||
<?= $this->actionLinks ?>
|
<?= $this->actionLinks ?>
|
||||||
<?= $this->render('object/deploymentLink.phtml') ?>
|
<?= $this->render('object/deploymentLink.phtml') ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user