From 8bb89d7d348e4e71409b772ea11cd6e1ee35f849 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Tue, 24 Sep 2013 11:02:21 +0200 Subject: [PATCH] Drop misleading secondary navigation and fix tab null return refs #4611 --- .../controllers/ShowController.php | 49 +------------------ 1 file changed, 2 insertions(+), 47 deletions(-) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index d9eca6e49..fe446efe3 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -375,57 +375,12 @@ class Monitoring_ShowController extends ActionController } elseif ($service = $this->_getParam('service')) { $params['service'] = $service; } - /* - * - $tabs->add( - 'host', - array( - 'title' => '{{HOST_ICON}} Host', - 'url' => 'monitoring/show/host', - 'urlParams' => $params, - ) - ); - if (!isset($this->view->service)) { - $tabs->add( - 'services', - array( - 'title' => '{{SERVICE_ICON}} Services', - 'url' => 'monitoring/show/services', - 'urlParams' => $params, - ) - ); - } - if (isset($params['service'])) { - $tabs->add( - 'service', - array( - 'title' => '{{SERVICE_ICON}} Service', - 'url' => 'monitoring/show/service', - 'urlParams' => $params, - ) - ); - } - $tabs->add( - 'history', - array( - 'title' => '{{HISTORY_ICON}} History', - 'url' => 'monitoring/show/history', - 'urlParams' => $params, - ) - ); -*/ + $tabs->extend(new OutputFormat()) ->extend(new DashboardAction()) ->extend(new BasketAction); - /** - $tabs->add('contacts', array( - 'title' => 'Contacts', - 'icon' => 'img/classic/customer.png', - 'url' => 'monitoring/detail/contacts', - 'urlParams' => $params, - ));**/ - + return $tabs; } } // @codingStandardsIgnoreEnd