mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-18 23:16:16 -05:00
31 lines
971 B
PHP
31 lines
971 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess\Controllers;
|
|
|
|
use Icinga\Module\Businessprocess\Web\Controller;
|
|
use Icinga\Module\Businessprocess\Web\Component\Dashboard;
|
|
use Icinga\Module\Businessprocess\Web\Component\DashboardFullscreen;
|
|
|
|
class IndexController extends Controller
|
|
{
|
|
/**
|
|
* Show an overview page
|
|
*/
|
|
public function indexAction()
|
|
{
|
|
$this->setTitle($this->translate('Business Process Overview'));
|
|
|
|
if (! $this->view->compact) {
|
|
$this->controls()->add($this->overviewTab());
|
|
}
|
|
|
|
if ($this->view->showFullscreen) {
|
|
$this->content()->add(DashboardFullscreen::create($this->storage()));
|
|
$this->setAutorefreshInterval(120);
|
|
$this->controls()->getAttributes()->add('class', 'want-fullscreen');
|
|
} else {
|
|
$this->content()->add(Dashboard::create($this->Auth(), $this->storage()));
|
|
$this->setAutorefreshInterval(15);
|
|
}
|
|
}
|
|
}
|