mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
b240e0e6bb
commit
5a49c0beed
@ -4,6 +4,7 @@
|
|||||||
namespace Icinga\Controllers;
|
namespace Icinga\Controllers;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use Icinga\Application\Version;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use Icinga\Application\Config;
|
use Icinga\Application\Config;
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
@ -122,6 +123,7 @@ class ConfigController extends Controller
|
|||||||
|
|
||||||
$this->view->module = $module;
|
$this->view->module = $module;
|
||||||
$this->view->tabs = $module->getConfigTabs()->activate('info');
|
$this->view->tabs = $module->getConfigTabs()->activate('info');
|
||||||
|
$this->view->moduleGitCommitId = Version::getGitHead($module->getBaseDir());
|
||||||
} else {
|
} else {
|
||||||
$this->view->module = false;
|
$this->view->module = false;
|
||||||
$this->view->tabs = null;
|
$this->view->tabs = null;
|
||||||
|
@ -37,7 +37,14 @@
|
|||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= $this->escape($this->translate('Version')) ?></th>
|
<th><?= $this->escape($this->translate('Version')) ?></th>
|
||||||
<td><?= $this->escape($module->getVersion()) ?></td></tr>
|
<td><?= $this->escape($module->getVersion()) ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php if (isset($moduleGitCommitId) && $moduleGitCommitId !== false): ?>
|
||||||
|
<tr>
|
||||||
|
<th><?= $this->escape($this->translate('Git commit')) ?></th>
|
||||||
|
<td><?= $this->escape($moduleGitCommitId) ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endif ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= $this->escape($this->translate('Description')) ?></th>
|
<th><?= $this->escape($this->translate('Description')) ?></th>
|
||||||
<td><?= nl2br($this->escape($module->getDescription())) ?></td>
|
<td><?= nl2br($this->escape($module->getDescription())) ?></td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user