diff --git a/modules/monitoring/application/controllers/AlertsummaryController.php b/modules/monitoring/application/controllers/AlertsummaryController.php index 1b3db8093..3490da9b4 100644 --- a/modules/monitoring/application/controllers/AlertsummaryController.php +++ b/modules/monitoring/application/controllers/AlertsummaryController.php @@ -10,11 +10,6 @@ use Icinga\Web\Url; class Monitoring_AlertsummaryController extends Controller { - /** - * @var string - */ - protected $url; - /** * @var array */ @@ -30,40 +25,28 @@ class Monitoring_AlertsummaryController extends Controller */ public function init() { - $tabs = $this->getTabs(); - if (in_array($this->_request->getActionName(), array('alertsummary'))) { - $tabs->extend(new OutputFormat())->extend(new DashboardAction()); - } - - $this->url = Url::fromRequest(); - $this->notificationData = $this->createNotificationData(); $this->problemData = $this->createProblemData(); } /** - * @param string $action - * @param bool $title - */ - protected function addTitleTab($action, $title = false) - { - $title = $title ?: ucfirst($action); - $this->getTabs()->add( - $action, - array( - 'title' => $title, - 'url' => $this->url - ) - )->activate($action); - $this->view->title = $title; - } - - /** - * Creat full report + * Create full report */ public function indexAction() { - $this->addTitleTab('alertsummary', $this->translate('Alert Summary')); + $this->getTabs()->add( + 'alertsummary', + array( + 'title' => $this->translate( + 'Show recent alerts and visualize notifications and problems' + . ' based on their amount and chronological distribution' + ), + 'label' => $this->translate('Alert Summary'), + 'url' => Url::fromRequest() + ) + )->activate('alertsummary'); + $this->view->title = $this->translate('Alert Summary'); + $this->view->intervalBox = $this->createIntervalBox(); $this->view->recentAlerts = $this->createRecentAlerts(); $this->view->interval = $this->getInterval();