From e95e5f35d8c6e0258e569391e033278f84d31f45 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Mon, 17 Nov 2014 16:27:22 +0100 Subject: [PATCH] Add significant title if there are no services configured refs #7687 fixes #7687 --- .../views/scripts/show/components/hostservicesummary.phtml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml b/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml index 0390bcffc..26a0da082 100644 --- a/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml +++ b/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml @@ -6,7 +6,12 @@ $currentUrl = Url::fromRequest()->without('limit')->getRelativeUrl(); ?>

compact ? ' data-base-target="col1"' : '' ?>> +stats->services_total > 0): ?> qlink(sprintf($this->translate('%s configured services:'), $object->stats->services_total), $selfUrl) ?> + +translate('No services configured on this host'); ?> + + stats->services_ok > 0): ?> qlink( $object->stats->services_ok,