修复版本库fork问题
This commit is contained in:
parent
01fd32fdd6
commit
8b8ad0056f
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue