From 3af68ef16601b3a761619472426f6a5c69d68d9d Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 31 Aug 2016 11:35:32 +0200 Subject: [PATCH] Remove leading and trailing whitespace from service header partial refs #12208 --- .../partials/object/service-header.phtml | 53 ++++++++++--------- 1 file changed, 27 insertions(+), 26 deletions(-) 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; - - iconImage()->host($object) ?> - escape($object->host_display_name) ?> - host_display_name !== $object->host_name): ?> - (escape($object->host_name) ?>) - - 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) . ')'; + } + 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; - - iconImage()->service($object) ?> - translate('Service') ?>: escape($object->service_display_name) ?> - service_display_name !== $object->service_description): ?> - (escape($object->service_description) ?>) - - 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'); + ?>