Merge branch 'yuanke' into develop

This commit is contained in:
yuanke 2016-03-25 21:11:45 +08:00
commit f6a22d74da
4 changed files with 10 additions and 4 deletions

View File

@ -55,8 +55,8 @@
<ul class="ProResultUl " > <ul class="ProResultUl " >
<% test.results.reverse.each_with_index do |x, i| %> <% test.results.reverse.each_with_index do |x, i| %>
<% unless x.nil? %>
<li > <li >
<span class="w60 T_C">测试<%=test.results.size-i%></span> <span class="w60 T_C">测试<%=test.results.size-i%></span>
<% if x["status"].to_i != 0 %> <% if x["status"].to_i != 0 %>
<% if x["status"].to_i == 2 %> <% if x["status"].to_i == 2 %>
@ -82,6 +82,7 @@
<div class="cl"></div> <div class="cl"></div>
<% end %> <% end %>
</li> </li>
<% end %>
<% end %> <% end %>
</ul> </ul>
</div> </div>

View File

@ -30,7 +30,7 @@
<! if(results["status"]==2){!> <! if(results["status"]==2){!>
<span class="w60 c_red">超时!</span> <span class="w60 c_red">超时!</span>
<!}else{!> <!}else{!>
<span class="w60 c_red">测试错误!</span> <span class="w60 c_red">测试错误!</span>
<!}!> <!}!>
<span class="w60">您的输出:</span> <span class="w60">您的输出:</span>
<span class="w180"><pre style="white-space: pre-wrap; margin-right: 15px;"><!=results["result"]!> </pre></span> <span class="w180"><pre style="white-space: pre-wrap; margin-right: 15px;"><!=results["result"]!> </pre></span>
@ -133,7 +133,9 @@
<% else %> <% else %>
<div class="ProResultTable " > <div class="ProResultTable " >
<ul class="ProResultUl " > <ul class="ProResultUl " >
<% test.results.reverse.each_with_index do |x, i| %> <% logger.error("################################################{test.results}") %>
<% test.results.reverse.each_with_index do |x, i| %>
<% unless x.nil? %>
<li ><span class="w60 T_C">测试<%=test.results.size-i%></span> <li ><span class="w60 T_C">测试<%=test.results.size-i%></span>
<% if x["status"].to_i != 0 %> <% if x["status"].to_i != 0 %>
<% if x["status"].to_i == 2 %> <% if x["status"].to_i == 2 %>
@ -159,6 +161,7 @@
</li> </li>
<% end %> <% end %>
<% end %> <% end %>
<% end %>
</ul> </ul>
</div> </div>
<% end %> <% end %>

View File

@ -101,6 +101,7 @@
<div class="ProResultTable " > <div class="ProResultTable " >
<ul class="ProResultUl " > <ul class="ProResultUl " >
<% test.results.reverse.each_with_index do |x, i| %> <% test.results.reverse.each_with_index do |x, i| %>
<% unless x.nil? %>
<li ><span class="w60 T_C">测试<%=test.results.size-i%></span> <li ><span class="w60 T_C">测试<%=test.results.size-i%></span>
<% if x["status"].to_i != 0 %> <% if x["status"].to_i != 0 %>
<% if x["status"].to_i == 2 %> <% if x["status"].to_i == 2 %>
@ -125,6 +126,7 @@
<div class="cl"></div> <div class="cl"></div>
</li> </li>
<% end %> <% end %>
<% end %>
<% end %> <% end %>
</ul> </ul>
</div> </div>

View File

@ -97,8 +97,8 @@ $(function(){
alert("您的答案超时了, 请检查代码是否存在死循环的错误."); alert("您的答案超时了, 请检查代码是否存在死循环的错误.");
} else { } else {
alert("测试失败,服务器出错."); alert("测试失败,服务器出错.");
return;
} }
return;
}); });
}; };