Merge pull request #1101 from cachethq/define-version
Display the current version in the settings sidebar. Closes #1061
This commit is contained in:
@@ -81,6 +81,12 @@ class SettingsController extends Controller
|
||||
'icon' => 'ion-paintbucket',
|
||||
'active' => false,
|
||||
],
|
||||
'about' => [
|
||||
'title' => CACHET_VERSION,
|
||||
'url' => 'javascript: void(0);',
|
||||
'icon' => 'ion-flag',
|
||||
'active' => false,
|
||||
],
|
||||
];
|
||||
|
||||
View::share([
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
define('CACHET_VERSION', trim(file_get_contents(__DIR__.'/../VERSION')));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Composer Auto Loader
|
||||
|
||||
Reference in New Issue
Block a user