From f48dbf16405e330560bb878b813060af12c0ad0c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 Feb 2015 16:59:47 +0100 Subject: [PATCH] Add proper title to the timeline's tab refs #8458 --- .../controllers/TimelineController.php | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/modules/monitoring/application/controllers/TimelineController.php b/modules/monitoring/application/controllers/TimelineController.php index a13973e1d..dcd7a10aa 100644 --- a/modules/monitoring/application/controllers/TimelineController.php +++ b/modules/monitoring/application/controllers/TimelineController.php @@ -13,19 +13,17 @@ use Icinga\Module\Monitoring\Web\Widget\SelectBox; class Monitoring_TimelineController extends Controller { - protected function addTitleTab($action, $title = false) - { - $title = $title ? : ucfirst($action); - $this->getTabs()->add($action, array( - 'title' => $title, - 'url' => Url::fromRequest() - ))->activate($action); - $this->view->title = $title; - } - public function indexAction() { - $this->addTitleTab('index', t('Timeline')); + $this->getTabs()->add( + 'timeline', + array( + 'title' => $this->translate('Show the number of historical event records grouped by time and type'), + 'label' => $this->translate('Timeline'), + 'url' => Url::fromRequest() + ) + )->activate('timeline'); + $this->view->title = $this->translate('Timeline'); // TODO: filter for hard_states (precedence adjustments necessary!) $this->setupIntervalBox();