parent
b69311165c
commit
f64db890d2
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,4 +22,29 @@
|
|||
: '<p>' . nl2br(implode("\n", $versionInfo), false)
|
||||
) . '</p>';
|
||||
?>
|
||||
<h1><?= $this->translate('Loaded modules') ?></h1>
|
||||
<table class="action alternating" data-base-target="_next">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->translate('Name') ?></th>
|
||||
<th><?= $this->translate('Version') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($modules as $module) {
|
||||
$name = $module->getName();
|
||||
?>
|
||||
<tr>
|
||||
<td><?= $this->qlink(
|
||||
$name,
|
||||
'config/module/',
|
||||
array('name' => $name),
|
||||
array('title' => sprintf($this->translate('Show the overview of the %s module'), $name))
|
||||
) ?></td>
|
||||
<td><?= $module->getVersion() ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue