Add version

This commit is contained in:
root
2017-06-13 01:21:18 +08:00
parent 483f8c99b5
commit 4d4d70ef6f
2 changed files with 13 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
return [
'version' => '0.7',
/*
|--------------------------------------------------------------------------
| Application Environment
+12 -1
View File
@@ -17,4 +17,15 @@
<div class="small-11 small-centered columns">
<span><center>© {{date("Y")}} 东北大学先锋网</center></span>
</div>
</footer>
</footer>
@if( env('APP_DEBUG') )
<footer class="row">
<div class="small-11 small-centered columns">
<span>
<center>
当前处于调试模式<br> 程序版本:{{ config('app.version') }}&nbsp;&nbsp; 文件版本:<a href="https://github.com/NEUP-Net-Depart/NEUP-FleaMarket/commit/{{ explode(' ', exec('git log --pretty=oneline -1'))[0] }}">{{ exec('git log --abbrev-commit --pretty=oneline -1') }}</a>
</center>
</span>
</div>
</footer>
@endif