2015-06-02 16:43:32 +02:00
|
|
|
<div class="content">
|
|
|
|
<h1>Icinga Web 2</h1>
|
|
|
|
<?php
|
|
|
|
$versionInfo = array();
|
2015-06-03 14:40:58 +02:00
|
|
|
if ($version !== false) {
|
|
|
|
foreach (array(
|
|
|
|
'appVersion' => $this->translate('Version: %s'),
|
|
|
|
'gitCommitID' => $this->translate('Git commit ID: %s'),
|
|
|
|
'gitCommitDate' => $this->translate('Git commit date: %s')
|
|
|
|
) as $key => $label) {
|
2015-06-03 15:28:36 +02:00
|
|
|
if (array_key_exists($key, $version) && null !== ($value = $version[$key])) {
|
2015-06-03 14:40:58 +02:00
|
|
|
$versionInfo[] = sprintf($label, htmlspecialchars($value));
|
|
|
|
}
|
2015-06-02 16:43:32 +02:00
|
|
|
}
|
|
|
|
}
|
2015-06-05 11:56:15 +02:00
|
|
|
|
|
|
|
echo (
|
|
|
|
0 === count($versionInfo)
|
2015-06-05 12:38:55 +02:00
|
|
|
? '<p class="message-error">' . $this->translate(
|
2015-06-05 11:56:15 +02:00
|
|
|
'Can\'t determine Icinga Web 2\'s version'
|
|
|
|
)
|
|
|
|
: '<p>' . nl2br(implode("\n", $versionInfo), false)
|
|
|
|
) . '</p>';
|
2015-06-02 16:43:32 +02:00
|
|
|
?>
|
2015-09-24 19:23:49 +02:00
|
|
|
<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>
|
2015-06-02 16:43:32 +02:00
|
|
|
</div>
|