icingaweb2-module-businessp.../application/controllers/IndexController.php
Eric Lippmann 0ce3381488 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 20:44:42 +01:00

34 lines
1.1 KiB
PHP

<?php
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
// SPDX-License-Identifier: GPL-3.0-or-later
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);
}
}
}