修复版本库fork问题

This commit is contained in:
huang 2017-03-24 19:49:59 +08:00
parent 01fd32fdd6
commit 8b8ad0056f
2 changed files with 2 additions and 7 deletions

View File

@ -35,12 +35,7 @@ class ShixunsController < ApplicationController
s = Trustie::Gitlab::Sync.new
s.sync_user(User.current)
end
if @shixun.gpid
gshixun = g.project(@shixun.gpid)
else
gshixun = g.fork(@shixun.gpid, User.current.gid)
end
gshixun = g.fork(@shixun.gpid, User.current.gid)
if gshixun.id
myshixun = copy_myshixun(@shixun, gshixun)
challenges = @shixun.challenges

View File

@ -4,7 +4,7 @@
<ul class="rightbar-score fr" >
<!--<li><i class="fa fa-signal font-14 mr5"></i>排名:<a href="#" class="">123</a></li>-->
<li><i class="fa fa-trophy font-14 mr5"></i>积分:<a class=""><%= shixun_final_score(@myshixun).first.try(:score) %></a></li>
<li><i class="fa fa-clock-o font-14 mr5"></i>耗时:<a class=""><%= game_avg_hour(@game.created_at, @game.updated_at) %><%= game_avg_min(@game.created_at, @game.updated_at) %></a></li>
<!--<li><i class="fa fa-clock-o font-14 mr5"></i>耗时:<a class=""><%#= game_avg_hour(@game.created_at, @game.updated_at) %><%#= game_avg_min(@game.created_at, @game.updated_at) %></a></li>-->
</ul>
</div>
<script>