From 8212ff9aab1d0d68e786dc7175466b8b36b596da Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 28 Oct 2015 12:09:00 +0100 Subject: [PATCH] monitoring: Display soft states in the service detail view refs #5543 --- .../scripts/partials/object/service-header.phtml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 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 5bb100f2c..37f56dc64 100644 --- a/modules/monitoring/application/views/scripts/partials/object/service-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/object/service-header.phtml @@ -7,7 +7,12 @@ use Icinga\Module\Monitoring\Object\Service;
host_state, true) ?>
-
timeSince($object->host_last_state_change) ?>
+
+ timeSince($object->host_last_state_change) ?> + host_state > 0 && (int) $object->host_state_type === 0): ?> +
translate('Soft', 'Soft state') ?> host_attempt ?>
+ +
iconImage()->host($object) ?> @@ -31,7 +36,12 @@ use Icinga\Module\Monitoring\Object\Service;
service_state, true) ?>
-
timeSince($object->service_last_state_change) ?>
+
+ timeSince($object->service_last_state_change) ?> + service_state > 0 && (int) $object->service_state_type === 0): ?> +
translate('Soft', 'Soft state') ?> service_attempt ?>
+ +
iconImage()->service($object) ?>