2015-06-02 10:43:32 -04:00
|
|
|
<?php
|
2016-02-08 09:41:00 -05:00
|
|
|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
2015-06-02 10:43:32 -04:00
|
|
|
|
2015-08-27 07:05:20 -04:00
|
|
|
namespace Icinga\Controllers;
|
2015-06-02 10:43:32 -04:00
|
|
|
|
2015-09-24 13:23:49 -04:00
|
|
|
use Icinga\Application\Icinga;
|
2015-09-30 11:07:55 -04:00
|
|
|
use Icinga\Application\Version;
|
|
|
|
|
use Icinga\Web\Controller;
|
2015-06-02 10:43:32 -04:00
|
|
|
|
2015-09-30 11:07:55 -04:00
|
|
|
class AboutController extends Controller
|
2015-06-02 10:43:32 -04:00
|
|
|
{
|
|
|
|
|
public function indexAction()
|
|
|
|
|
{
|
2015-06-03 08:40:58 -04:00
|
|
|
$this->view->version = Version::get();
|
2020-11-12 10:08:07 -05:00
|
|
|
$this->view->libraries = Icinga::app()->getLibraries();
|
2015-09-24 13:23:49 -04:00
|
|
|
$this->view->modules = Icinga::app()->getModuleManager()->getLoadedModules();
|
2019-07-12 04:22:01 -04:00
|
|
|
$this->view->title = $this->translate('About');
|
2015-09-30 11:07:55 -04:00
|
|
|
$this->view->tabs = $this->getTabs()->add(
|
|
|
|
|
'about',
|
|
|
|
|
array(
|
|
|
|
|
'label' => $this->translate('About'),
|
|
|
|
|
'title' => $this->translate('About Icinga Web 2'),
|
|
|
|
|
'url' => 'about'
|
|
|
|
|
)
|
|
|
|
|
)->activate('about');
|
2015-06-02 10:43:32 -04:00
|
|
|
}
|
|
|
|
|
}
|