Host/show: display host alias if it differs from host_name and display_name
fixes #11348
This commit is contained in:
parent
1be8e14772
commit
b6a76581b0
|
@ -18,6 +18,11 @@ use Icinga\Module\Monitoring\Object\Host;
|
||||||
<span class="selectable"><?= $this->escape($object->host_display_name) ?></span>
|
<span class="selectable"><?= $this->escape($object->host_display_name) ?></span>
|
||||||
<?php if ($object->host_display_name !== $object->host_name): ?>
|
<?php if ($object->host_display_name !== $object->host_name): ?>
|
||||||
<span class="selectable host-meta">(<?= $this->escape($object->host_name) ?>)</span>
|
<span class="selectable host-meta">(<?= $this->escape($object->host_name) ?>)</span>
|
||||||
|
<?php endif ?>
|
||||||
|
<?php if ($object->host_alias !== $object->host_display_name && $object->host_alias !== $object->host_name): ?>
|
||||||
|
<div class="selectable host-meta">
|
||||||
|
<?= $this->escape($this->translate('Alias', 'host') . ': ' . $object->host_alias) ?>
|
||||||
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?= $this->render('partials/host/statusicons.phtml') ?>
|
<?= $this->render('partials/host/statusicons.phtml') ?>
|
||||||
<?php if ($object->host_address6 && $object->host_address6 !== $object->host_name): ?>
|
<?php if ($object->host_address6 && $object->host_address6 !== $object->host_name): ?>
|
||||||
|
|
Loading…
Reference in New Issue