mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-20 06:59:38 +00:00
Added bookstack version in settings
Gets the app version via git. Closes #99
This commit is contained in:
parent
9dc1b35e82
commit
4e8722661f
2 changed files with 13 additions and 3 deletions
app/Http/Controllers
|
@ -15,7 +15,14 @@ class SettingController extends Controller
|
|||
{
|
||||
$this->checkPermission('settings-manage');
|
||||
$this->setPageTitle('Settings');
|
||||
return view('settings/index');
|
||||
|
||||
// Get application version
|
||||
$version = false;
|
||||
if (function_exists('exec')) {
|
||||
$version = exec('git describe --always --tags ');
|
||||
}
|
||||
|
||||
return view('settings/index', ['version' => $version]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue