mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
parent
1ef03a76f7
commit
f48dbf1640
@ -13,19 +13,17 @@ use Icinga\Module\Monitoring\Web\Widget\SelectBox;
|
|||||||
|
|
||||||
class Monitoring_TimelineController extends Controller
|
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()
|
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!)
|
// TODO: filter for hard_states (precedence adjustments necessary!)
|
||||||
$this->setupIntervalBox();
|
$this->setupIntervalBox();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user