Skip to content

Commit

Permalink
Adds upgrade guide and references version numbers #95
Browse files Browse the repository at this point in the history
  • Loading branch information
austintoddj committed Oct 3, 2016
1 parent 55eba39 commit decd866
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
1 change: 1 addition & 0 deletions app/Http/Controllers/Backend/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
2 changes: 2 additions & 0 deletions resources/views/backend/home/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@
@include('backend.shared.components.slugify')

{!! JsValidator::formRequest('App\Http\Requests\PostCreateRequest', '#postCreate') !!}

@include('backend.home.partials.latest-release')
@stop
6 changes: 4 additions & 2 deletions resources/views/backend/home/sections/at-a-glance.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
@endif
</li>
</ul>
<hr>
<small>Canvas v2.1.7 is currently running <a href="https://laravel.com/docs/5.3" target="_blank">Laravel 5.3</a>.</small>
@if($data['canvasVersion'] !== 'v2.1.7')
<hr>
<a href="{{ url('https://github.com/austintoddj/canvas/releases/tag/v2.1.7') }}" target="_blank"><small>Canvas <span id="tag_name"></span></a> is available! <a href="https://github.com/austintoddj/canvas/UPGRADE.md">Please update now.</a></small>
@endif
</div>
</div>

0 comments on commit decd866

Please sign in to comment.