diff --git a/modules/monitoring/application/views/scripts/host/show.phtml b/modules/monitoring/application/views/scripts/host/show.phtml index 8023c1821..00d579a29 100644 --- a/modules/monitoring/application/views/scripts/host/show.phtml +++ b/modules/monitoring/application/views/scripts/host/show.phtml @@ -1,6 +1,6 @@
- render('show/components/header.phtml') ?> - render('show/components/hostservicesummary.phtml') ?> + render('partials/host/object-header.phtml') ?> + render('partials/host/servicesummary.phtml') ?>
render('show/components/output.phtml') ?> diff --git a/modules/monitoring/application/views/scripts/hosts/show.phtml b/modules/monitoring/application/views/scripts/hosts/show.phtml index 516e1be03..7f8d775ab 100644 --- a/modules/monitoring/application/views/scripts/hosts/show.phtml +++ b/modules/monitoring/application/views/scripts/hosts/show.phtml @@ -1,23 +1,10 @@
- tabs ?> + render('partials/host/objects-header.phtml') ?>
- - + translate('No hosts matching the filter') ?> -
- translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?> -
-
-  hostStatesPieChart ?> -
-
- $count) { - echo sprintf('%s: %u
', $this->translate(strtoupper($text)), $count); - } ?> -
-

translatePlural( diff --git a/modules/monitoring/application/views/scripts/service/show.phtml b/modules/monitoring/application/views/scripts/service/show.phtml index a5c95fd61..3a09e2bf4 100644 --- a/modules/monitoring/application/views/scripts/service/show.phtml +++ b/modules/monitoring/application/views/scripts/service/show.phtml @@ -1,5 +1,5 @@
- render('show/components/header.phtml') ?> + render('partials/service/object-header.phtml') ?>

translate("Service detail information") ?>

diff --git a/modules/monitoring/application/views/scripts/services/show.phtml b/modules/monitoring/application/views/scripts/services/show.phtml index 522d32ce7..d5d9df2d9 100644 --- a/modules/monitoring/application/views/scripts/services/show.phtml +++ b/modules/monitoring/application/views/scripts/services/show.phtml @@ -1,41 +1,11 @@
- tabs ?> + render('partials/service/objects-header.phtml') ?>
- - + translate('No services matching the filter') ?> -
-
- translatePlural('Service (%u)', 'Services (%u)', $serviceCount), $serviceCount) ?> -
-
-  serviceStatesPieChart ?> -
-
- $count) { - echo sprintf(' %s: %u
', $this->translate(strtoupper($text)), $count); - } ?> -
-
- -
-
- - translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?> -
-
-  hostStatesPieChart ?> -
-
- $count) { - echo sprintf('%s: %u
', $this->translate(strtoupper($text)), $count); - } ?> -
-
-
translate('List all') ?> diff --git a/modules/monitoring/application/views/scripts/show/history.phtml b/modules/monitoring/application/views/scripts/show/history.phtml index 40fb15363..5c20e800b 100644 --- a/modules/monitoring/application/views/scripts/show/history.phtml +++ b/modules/monitoring/application/views/scripts/show/history.phtml @@ -3,10 +3,17 @@ use Icinga\Module\Monitoring\Object\Host; use Icinga\Module\Monitoring\Object\Service; +$self = $this; +$hostContext = $object->getType() === 'host'; + ?>
- render('show/components/header.phtml'); ?> + + render('partials/host/object-header.phtml'); ?> + + render('partials/service/object-header.phtml'); ?> +

translate('This Object\'s Event History'); ?>

widget('limiter', array('url' => $url, 'max' => $history->count())); ?> paginationControl($history, null, null, array('preserve' => $this->preserve)); ?> @@ -19,8 +26,6 @@ use Icinga\Module\Monitoring\Object\Service; getType() === 'host'; function contactsLink($match, $view) { $links = array(); foreach (preg_split('/,\s/', $match[1]) as $contact) { diff --git a/modules/monitoring/application/views/scripts/show/services.phtml b/modules/monitoring/application/views/scripts/show/services.phtml index ae4f8f699..57b4b204e 100644 --- a/modules/monitoring/application/views/scripts/show/services.phtml +++ b/modules/monitoring/application/views/scripts/show/services.phtml @@ -1,5 +1,5 @@
-render('show/components/header.phtml') ?> -render('show/components/hostservicesummary.phtml') ?> +render('partials/host/object-header.phtml') ?> +render('partials/host/servicesummary.phtml') ?>