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 %>

第<%= game.challenge.try(:position) %>关 <%= game.challenge.try(:subject) %>

- 已闯关:<%= had_pass(@myshixun) %>人 + 已闯关:<%#= had_pass(@myshixun) %>人 平均耗时:0小时28分

diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css index 250241e1e..1217b244c 100644 --- a/public/stylesheets/css/taskstyle.css +++ b/public/stylesheets/css/taskstyle.css @@ -95,7 +95,7 @@ a:hover.leftnav-box-inner,a.leftnav-active{border-left:3px solid #29bd8b;color: .rightbar-score li a{ color:#fff;} a.rightbar-pause{ color:#29bd8b; font-size: 18px; margin-right:245px; margin-top: 12px;} .rightbar-h2{ color:#fff; margin:12px 0 0 20px; font-weight: normal;} -.rightbar{background:#f5f9fc; color:#333;} +.rightbar{background:#f5f9fc; color:#333; position: relative;} /*右侧内容*/ .content{ min-width:1000px; } .content-row{ padding:15px; }