2015-06-02 16:43:32 +02:00
|
|
|
<div class="content">
|
|
|
|
<h1>Icinga Web 2</h1>
|
|
|
|
<?php
|
|
|
|
$versionInfo = array();
|
2015-06-05 12:38:55 +02:00
|
|
|
foreach (array(
|
|
|
|
'appVersion' => $this->translate('Version: %s'),
|
|
|
|
'gitCommitID' => $this->translate('Git commit ID: %s'),
|
|
|
|
'gitCommitDate' => $this->translate('Git commit date: %s')
|
|
|
|
) as $key => $label) {
|
|
|
|
if (array_key_exists($key, $version) && null !== ($value = $version[$key])) {
|
|
|
|
$versionInfo[] = sprintf($label, htmlspecialchars($value));
|
2015-06-02 16:43:32 +02:00
|
|
|
}
|
|
|
|
}
|
2015-06-05 11:56:15 +02:00
|
|
|
|
2015-06-02 16:43:32 +02:00
|
|
|
?>
|
2015-06-05 12:38:55 +02:00
|
|
|
<p><?= implode('<br>', $versionInfo) ?></p>
|
2015-06-05 12:38:55 +02:00
|
|
|
<p>Copyright © 2013-2015 <a href="https://www.icinga.org"><?=
|
|
|
|
$this->translate('The Icinga Project')
|
2015-06-05 12:38:55 +02:00
|
|
|
?></a><br><?= $this->translate('License: GNU GPL v2 or later') ?></p>
|
2015-06-05 12:38:55 +02:00
|
|
|
<p><a href="https://dev.icinga.org/projects/icingaweb2"><?=
|
|
|
|
$this->translate('Report a bug')
|
|
|
|
?></a> <a href="https://www.icinga.org/services/support/"><?=
|
|
|
|
$this->translate('Support')
|
|
|
|
?></a> <a href="https://wiki.icinga.org/dashboard.action"><?=
|
|
|
|
$this->translate('Icinga Wiki')
|
|
|
|
?></a> <a href="http://docs.icinga.org/"><?=
|
|
|
|
$this->translate('Icinga Documentation')
|
|
|
|
?></a><br><a href="https://twitter.com/icinga"><?=
|
|
|
|
$this->translate('Icinga on Twitter')
|
|
|
|
?></a> <a href="https://www.facebook.com/icinga"><?=
|
|
|
|
$this->translate('Icinga on Facebook')
|
|
|
|
?></a></p>
|
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>
|
2015-09-24 19:23:49 +02:00
|
|
|
<td><?= $hasPermission ? $this->qlink(
|
2015-09-24 19:23:49 +02:00
|
|
|
$name,
|
|
|
|
'config/module/',
|
|
|
|
array('name' => $name),
|
|
|
|
array('title' => sprintf($this->translate('Show the overview of the %s module'), $name))
|
2015-09-24 19:23:49 +02:00
|
|
|
) : $name ?></td>
|
2015-09-24 19:23:49 +02:00
|
|
|
<td><?= $module->getVersion() ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-06-02 16:43:32 +02:00
|
|
|
</div>
|