icingaweb2/application/views/scripts/about/index.phtml

21 lines
760 B
PHTML

<div class="content">
<h1>Icinga Web 2</h1>
<?php
$versionInfo = array();
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));
}
}
?>
<p><?= implode('<br>', $versionInfo) ?></p>
<p>Copyright &copy; 2013-2015&emsp;<a href="https://www.icinga.org"><?=
$this->translate('The Icinga Project')
?></a><br><?= $this->translate('License: GNU GPL v2 or later') ?></p>
</div>