diff --git a/modules/monitoring/application/views/scripts/partials/object/service-header.phtml b/modules/monitoring/application/views/scripts/partials/object/service-header.phtml
index 93eb41f94..bc23fcedb 100644
--- a/modules/monitoring/application/views/scripts/partials/object/service-header.phtml
+++ b/modules/monitoring/application/views/scripts/partials/object/service-header.phtml
@@ -14,24 +14,24 @@ use Icinga\Module\Monitoring\Object\Service;
-
- = $this->iconImage()->host($object) ?>
- = $this->escape($object->host_display_name) ?>
- host_display_name !== $object->host_name): ?>
- (= $this->escape($object->host_name) ?>)
-
- = $this->render('partials/host/statusicons.phtml') ?>
- host_address6 && $object->host_address6 !== $object->host_name): ?>
-
- = $this->escape($object->host_address6) ?>
-
-
- host_address && $object->host_address !== $object->host_name): ?>
-
- = $this->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) . ')';
+ }
+ 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)
+ . ' ';
+ }
+ ?> |
@@ -43,13 +43,14 @@ use Icinga\Module\Monitoring\Object\Service;
|
-
- = $this->iconImage()->service($object) ?>
- = $this->translate('Service') ?>: = $this->escape($object->service_display_name) ?>
- service_display_name !== $object->service_description): ?>
- (= $this->escape($object->service_description) ?>)
-
- = $this->render('partials/service/statusicons.phtml') ?>
- |
+ iconImage()->service($object);
+ echo $this->translate('Service')
+ . ': ' . $this->escape($object->service_display_name) . '';
+ if ($object->service_display_name !== $object->service_description) {
+ echo ' (' . $this->escape($object->service_description) . ')';
+ }
+ echo $this->render('partials/service/statusicons.phtml');
+ ?> |