diff --git a/modules/monitoring/application/views/scripts/partials/object/host-header.phtml b/modules/monitoring/application/views/scripts/partials/object/host-header.phtml index a77a95d58..34315f964 100644 --- a/modules/monitoring/application/views/scripts/partials/object/host-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/object/host-header.phtml @@ -13,28 +13,28 @@ use Icinga\Module\Monitoring\Object\Host; - - iconImage()->host($object) ?> - escape($object->host_display_name) ?> - host_display_name !== $object->host_name): ?> - (escape($object->host_name) ?>) - - host_alias !== $object->host_display_name && $object->host_alias !== $object->host_name): ?> -
- escape($this->translate('Alias', 'host') . ': ' . $object->host_alias) ?> -
- - render('partials/host/statusicons.phtml') ?> - host_address6 && $object->host_address6 !== $object->host_name): ?> -
- escape($object->host_address6) ?> -
- - host_address && $object->host_address !== $object->host_name): ?> -
- escape($object->host_address) ?> -
- - + iconImage()->host($object); + echo '' . $this->escape($object->host_display_name) . ''; + if ($object->host_display_name !== $object->host_name) { + echo ' (' . $this->escape($object->host_name) . ')'; + } + if ($object->host_alias !== $object->host_display_name && $object->host_alias !== $object->host_name) { + echo '
' + . $this->escape($this->translate('Alias', 'host') . ': ' . $object->host_alias) + . '
'; + } + echo $this->render('partials/host/statusicons.phtml'); + if ($object->host_address6 && $object->host_address6 !== $object->host_name) { + echo '
' + . $this->escape($object->host_address6) + . '
'; + } + if ($object->host_address && $object->host_address !== $object->host_name) { + echo '
' + . $this->escape($object->host_address) + . '
'; + } + ?>