monitoring: Show host_name in the detail area too if it's different from the display_name

refs #7843
This commit is contained in:
Eric Lippmann 2015-01-22 10:36:02 +01:00
parent 3d306c0a06
commit 9e5d7f43ff
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ $isService = $object->getType() === $object::TYPE_SERVICE;
</td>
<td>
<b><?= $this->escape($object->host_display_name) ?></b>
<?php if ($object->host_display_name !== $object->host_name): ?>
<small>(<?= $this->escape($object->host_name) ?>)</small>
<?php endif ?>
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
<br>
<?= $this->escape($object->host_address) ?>