编程作业加个日志
This commit is contained in:
parent
7be7bfb3f7
commit
a58ba8080c
|
@ -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,8 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="ProResultTable " >
|
<div class="ProResultTable " >
|
||||||
<ul class="ProResultUl " >
|
<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>
|
<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 %>
|
||||||
|
|
Loading…
Reference in New Issue