modified show version

This commit is contained in:
LI JIAHAO
2017-06-14 13:58:07 +08:00
parent 4d7e3fab37
commit f2be5eca47
2 changed files with 9 additions and 3 deletions
+4
View File
@@ -30,3 +30,7 @@ MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
ALLOW_REG=false
# 大一同学的入学年份(两位),用来判断用户是否过期
FRESH_YEAR=16
# 在底部显示版本信息
SHOW_VER=true
+5 -3
View File
@@ -19,14 +19,16 @@
<span><center>© {{date("Y")}} 东北大学先锋网</center></span>
</div>
</footer>
@if( env('APP_DEBUG') )
@if( env('SHOW_VER') || env('APP_DEBUG') )
<footer class="row">
<div class="small-11 small-centered columns">
<span>
<center>
当前处于调试模式<br> 程序版本:{{ config('app.version') }}&nbsp;&nbsp; 文件版本:<a
@if(env('APP_DEBUG'))当前处于调试模式<br>@endif
@if(env('SHOW_VER'))程序版本:{{ 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>
@endif
</center>
</span>
</div>
</footer>