编程作业加个日志

This commit is contained in:
yuanke 2016-03-25 21:06:25 +08:00
parent 7be7bfb3f7
commit a58ba8080c
1 changed files with 3 additions and 2 deletions

View File

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