Skip to content

Commit

Permalink
Merge pull request LearningLocker#554 from LearningLocker/issue/version
Browse files Browse the repository at this point in the history
Improves version displayed.
  • Loading branch information
ryasmi committed Mar 19, 2015
2 parents c7bf8cd + 40ceaff commit e6bcf0d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/views/layouts/sidebars/sidebar_footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
<div id="footer">
Powered by
<a href="http://learninglocker.net" target='_blank'>Learning Locker</a>
<a href="https://github.com/LearningLocker/learninglocker/releases/tag/v{{ file_get_contents(base_path().'/VERSION') }}">Version {{ file_get_contents(base_path().'/VERSION') }}</a>
<a href="https://github.com/LearningLocker/learninglocker/releases/latest">Get the latest version</a>
<?php $installed_version = file_get_contents(base_path().'/VERSION'); ?>
<?php $latest_version = file_get_contents('https://raw.githubusercontent.com/LearningLocker/learninglocker/master/VERSION'); ?>
<a href="https://github.com/LearningLocker/learninglocker/releases/tag/v{{ $installed_version }}">Version {{ $installed_version }}</a>
@if ($latest_version !== $installed_version)
<a href="https://github.com/LearningLocker/learninglocker/releases/latest">You can upgrade to {{ $latest_version }}</a>
@else
<a href="https://github.com/LearningLocker/learninglocker/releases/latest">You have the latest version</a>
@endif
</div>

0 comments on commit e6bcf0d

Please sign in to comment.