new: [version] show the cerebrate version and link to the release notes
parent
dc880b1b39
commit
de39176b6a
|
@ -145,6 +145,9 @@ class AppController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->ACL->checkAccess();
|
$this->ACL->checkAccess();
|
||||||
|
$version = file_get_contents(ROOT . DS . 'src' . DS . 'VERSION.json');
|
||||||
|
$version = json_decode($version, true)['version'];
|
||||||
|
$this->set('cerebrate_version', $version);
|
||||||
if (!$this->ParamHandler->isRest()) {
|
if (!$this->ParamHandler->isRest()) {
|
||||||
$this->set('ajax', $this->request->is('ajax'));
|
$this->set('ajax', $this->request->is('ajax'));
|
||||||
$this->request->getParam('prefix');
|
$this->request->getParam('prefix');
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
<div class="global-search-container d-md-block d-none me-4">
|
||||||
|
<span><a style="text-decoration: none" class="link-light" href="https://cerebrate-project.org">Cerebrate</a> <a style="text-decoration: none" class="link-light" href="https://github.com/cerebrate-project/cerebrate/releases/tag/v<?= h($cerebrate_version) ?>">v<?= h($cerebrate_version) ?></a></span>
|
||||||
|
</div>
|
||||||
<div class="global-search-container d-md-block d-none">
|
<div class="global-search-container d-md-block d-none">
|
||||||
<span class="search-input-container">
|
<span class="search-input-container">
|
||||||
<input type="text" class="form-control d-inline-block" id="globalSearch" placeholder="<?= __('Search in Cerebrate...') ?>">
|
<input type="text" class="form-control d-inline-block" id="globalSearch" placeholder="<?= __('Search in Cerebrate...') ?>">
|
||||||
|
|
Loading…
Reference in New Issue