Merge pull request #1101 from cachethq/define-version

Display the current version in the settings sidebar. Closes #1061
This commit is contained in:
Graham Campbell
2015-11-04 17:41:33 +00:00
3 changed files with 9 additions and 0 deletions

1
VERSION Normal file
View File

@@ -0,0 +1 @@
2.0.0-dev

View File

@@ -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([

View File

@@ -11,6 +11,8 @@
define('LARAVEL_START', microtime(true));
define('CACHET_VERSION', trim(file_get_contents(__DIR__.'/../VERSION')));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader