about: List loaded libraries

This commit is contained in:
Johannes Meyer 2020-11-12 16:08:07 +01:00
parent e9fa9d95dd
commit 7af8bf351c
3 changed files with 26 additions and 1 deletions

View File

@ -12,6 +12,7 @@ class AboutController extends Controller
public function indexAction()
{
$this->view->version = Version::get();
$this->view->libraries = Icinga::app()->getLibraries();
$this->view->modules = Icinga::app()->getModuleManager()->getLoadedModules();
$this->view->title = $this->translate('About');
$this->view->tabs = $this->getTabs()->add(

View File

@ -94,7 +94,27 @@
)
) ?>
</div>
<h2><?= $this->translate('Loaded modules') ?></h2>
<h2><?= $this->translate('Loaded Libraries') ?></h2>
<table class="table-row-selectable common-table" data-base-target="_next">
<thead>
<tr>
<th><?= $this->translate('Name') ?></th>
<th><?= $this->translate('Version') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($libraries as $library): ?>
<tr>
<td>
<?= $this->escape($library->getName()) ?>
<td>
<?= $this->escape($library->getVersion()) ?: '-' ?>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
<h2><?= $this->translate('Loaded Modules') ?></h2>
<table class="table-row-selectable common-table" data-base-target="_next">
<thead>
<tr>

View File

@ -1,6 +1,10 @@
/*! Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
#about {
h2 {
margin-top: 2.5em;
}
.about-social i {
font-size: 1.7em;
color: @text-color;