From f64db890d2ad8726a086372c474d8aa1daf67c62 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 24 Sep 2015 19:23:49 +0200 Subject: [PATCH] Show loaded modules in the about page refs #9381 --- application/controllers/AboutController.php | 2 ++ application/views/scripts/about/index.phtml | 25 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/application/controllers/AboutController.php b/application/controllers/AboutController.php index fc1c78931..f4ff2fb3c 100644 --- a/application/controllers/AboutController.php +++ b/application/controllers/AboutController.php @@ -5,11 +5,13 @@ namespace Icinga\Controllers; use Icinga\Application\Version; use Icinga\Web\Controller\ActionController; +use Icinga\Application\Icinga; class AboutController extends ActionController { public function indexAction() { $this->view->version = Version::get(); + $this->view->modules = Icinga::app()->getModuleManager()->getLoadedModules(); } } diff --git a/application/views/scripts/about/index.phtml b/application/views/scripts/about/index.phtml index e270a8eb9..a85407f22 100644 --- a/application/views/scripts/about/index.phtml +++ b/application/views/scripts/about/index.phtml @@ -22,4 +22,29 @@ : '

' . nl2br(implode("\n", $versionInfo), false) ) . '

'; ?> +

translate('Loaded modules') ?>

+ + + + + + + + + getName(); + ?> + + + + + + +
translate('Name') ?>translate('Version') ?>
qlink( + $name, + 'config/module/', + array('name' => $name), + array('title' => sprintf($this->translate('Show the overview of the %s module'), $name)) + ) ?>getVersion() ?>