diff --git a/app/views/games/_exec_results.html.erb b/app/views/games/_exec_results.html.erb index a788c10ef..d471d38aa 100644 --- a/app/views/games/_exec_results.html.erb +++ b/app/views/games/_exec_results.html.erb @@ -121,7 +121,7 @@ $("#code_results").html(html); if(data.status == 2){ if( data.had_done == 0 ) { - var htmlvalue = "<%= j (render :partial => 'games/pass_game_show', :locals => { :game=> @game, :myshixun => @myshixun, :had_done => 1}) %>"; + var htmlvalue = "<%= j (render :partial => 'games/pass_game_show', :locals => { :game=> @game, :myshixun => @myshixun, :had_done => 0}) %>"; }else{ var htmlvalue = "<%= j (render :partial => 'games/pass_game_show', :locals => { :game=> @game, :myshixun => @myshixun, :had_done => 1}) %>"; } @@ -151,7 +151,7 @@ }); } function extend_window(){ - // $(".content-half-fix").show(); + $(".content-half-fix").show(); } function hide_windows(){ $(".content-half-fix").hide(); diff --git a/app/views/games/_games_list.html.erb b/app/views/games/_games_list.html.erb index 36e34eab4..c663c77d4 100644 --- a/app/views/games/_games_list.html.erb +++ b/app/views/games/_games_list.html.erb @@ -38,14 +38,14 @@ 完成时间:<%= format_time(game.updated_at) %> 耗时:<%#= game_avg_hour(game.created_at, game.updated_at) %>小时<%= game_avg_min(game.created_at, game.updated_at) %>分 测评次数:<%#= avg_my_pass game %>次 - 得分:<%= game.final_score %>分 + 得分:<%#= game.final_score %>分
<% elsif game.status == 3 %>- 已闯关:<%= had_pass(@myshixun) %>人 + 已闯关:<%#= had_pass(@myshixun) %>人 平均耗时:0小时28分