monitoring: Use display_name for displaying the host name in the detail area

refs #7843
This commit is contained in:
Eric Lippmann 2015-01-22 10:35:06 +01:00
parent 4539462bc7
commit 3d306c0a06
1 changed files with 3 additions and 2 deletions

View File

@ -18,9 +18,10 @@ $isService = $object->getType() === $object::TYPE_SERVICE;
<?= $this->prefixedTimeSince($object->host_last_state_change, true) ?> <?= $this->prefixedTimeSince($object->host_last_state_change, true) ?>
</td> </td>
<td> <td>
<b><?= $this->escape($object->host_name) ?></b> <b><?= $this->escape($object->host_display_name) ?></b>
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?> <?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
<br><?= $this->escape($object->host_address) ?> <br>
<?= $this->escape($object->host_address) ?>
<?php endif ?> <?php endif ?>
</td> </td>
</tr> </tr>