diff --git a/app/Console/Commands/Install.php b/app/Console/Commands/Install.php index adba105ca..acfc44121 100755 --- a/app/Console/Commands/Install.php +++ b/app/Console/Commands/Install.php @@ -207,7 +207,7 @@ private function canvasVersion() { $settings = new Settings(); $settings->setting_name = 'canvas_version'; - $settings->setting_value = '2.1.7'; + $settings->setting_value = 'v2.1.7'; $settings->save(); } } diff --git a/app/Http/Controllers/Backend/HomeController.php b/app/Http/Controllers/Backend/HomeController.php index 3e87bd355..54ed32987 100644 --- a/app/Http/Controllers/Backend/HomeController.php +++ b/app/Http/Controllers/Backend/HomeController.php @@ -24,6 +24,7 @@ public function index() 'disqus' => Settings::disqus(), 'analytics' => Settings::gaId(), 'status' => App::isDownForMaintenance() ? 0 : 1, + 'canvasVersion' => Settings::canvasVersion(), ]; return view('backend.home.index', compact('data')); diff --git a/resources/views/backend/home/index.blade.php b/resources/views/backend/home/index.blade.php index 579b5849c..b38e42881 100644 --- a/resources/views/backend/home/index.blade.php +++ b/resources/views/backend/home/index.blade.php @@ -55,4 +55,6 @@ @include('backend.shared.components.slugify') {!! JsValidator::formRequest('App\Http\Requests\PostCreateRequest', '#postCreate') !!} + + @include('backend.home.partials.latest-release') @stop diff --git a/resources/views/backend/home/sections/at-a-glance.blade.php b/resources/views/backend/home/sections/at-a-glance.blade.php index e45cd4dd5..27f4c2865 100644 --- a/resources/views/backend/home/sections/at-a-glance.blade.php +++ b/resources/views/backend/home/sections/at-a-glance.blade.php @@ -33,7 +33,9 @@ @endif -
- Canvas v2.1.7 is currently running Laravel 5.3. + @if($data['canvasVersion'] !== 'v2.1.7') +
+ Canvas is available! Please update now. + @endif