diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..54ef5dd1 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +2.0.0-RC1 diff --git a/app/Http/Controllers/Dashboard/SettingsController.php b/app/Http/Controllers/Dashboard/SettingsController.php index 4c4014a6..8feb9be6 100644 --- a/app/Http/Controllers/Dashboard/SettingsController.php +++ b/app/Http/Controllers/Dashboard/SettingsController.php @@ -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([ diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 61a874ac..0355e450 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -28,6 +28,8 @@ class AppServiceProvider extends ServiceProvider return Dispatcher::simpleMapping($command, 'CachetHQ\Cachet', 'CachetHQ\Cachet\Handlers'); }); + define('CACHET_VERSION', trim(file_get_contents($this->app->basePath().'/VERSION'))); + Str::macro('canonicalize', function ($url) { return preg_replace('/([^\/])$/', '$1/', $url); });