parent
1ef03a76f7
commit
f48dbf1640
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue