From a6a9bd28ebc6055aa52670627ffa1f7db9997ccd Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 15 Apr 2015 15:06:15 +0200 Subject: [PATCH] Use timeSince() for the last status change in the service's detail view Instead of using prefixedTimeSince() which will be removed. refs #6778 --- .../views/scripts/partials/service/object-header.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/scripts/partials/service/object-header.phtml b/modules/monitoring/application/views/scripts/partials/service/object-header.phtml index 5f3ccb70f..9ecd66ef9 100644 --- a/modules/monitoring/application/views/scripts/partials/service/object-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/service/object-header.phtml @@ -11,7 +11,7 @@ use Icinga\Module\Monitoring\Object\Service; host_state, true); ?>
- prefixedTimeSince($object->host_last_state_change, true); ?> + timeSince($object->host_last_state_change) ?> escape($object->host_display_name); ?> @@ -28,7 +28,7 @@ use Icinga\Module\Monitoring\Object\Service; service_state, true); ?>
- prefixedTimeSince($object->service_last_state_change, true); ?> + timeSince($object->service_last_state_change) ?> translate('Service'); ?>: escape($object->service_display_name); ?>