From ef49715b085b6c5d44d1868a4eae3bae34f95ef5 Mon Sep 17 00:00:00 2001
From: yuanke <249218296@qq.com>
Date: Fri, 25 Mar 2016 21:11:13 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E7=A8=8B=E6=B5=8B=E8=AF=95=E5=8A=A0?=
=?UTF-8?q?=E4=B8=AAresults=E4=B8=BA=E7=A9=BA=E5=88=A4=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/student_work/_programing_work_show.html.erb | 3 ++-
app/views/users/new_user_commit_homework.html.erb | 4 +++-
app/views/users/user_commit_homework.html.erb | 2 ++
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/app/views/student_work/_programing_work_show.html.erb b/app/views/student_work/_programing_work_show.html.erb
index ae2237bdc..6009dfbb5 100644
--- a/app/views/student_work/_programing_work_show.html.erb
+++ b/app/views/student_work/_programing_work_show.html.erb
@@ -55,8 +55,8 @@
<% test.results.reverse.each_with_index do |x, i| %>
+ <% unless x.nil? %>
-
-
测试<%=test.results.size-i%>
<% if x["status"].to_i != 0 %>
<% if x["status"].to_i == 2 %>
@@ -82,6 +82,7 @@
<% end %>
+ <% end %>
<% end %>
diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb
index 0c2a32865..e33362a0a 100644
--- a/app/views/users/new_user_commit_homework.html.erb
+++ b/app/views/users/new_user_commit_homework.html.erb
@@ -133,8 +133,9 @@
<% else %>
- <%puts test.results %>
+ <% logger.error("################################################{test.results}") %>
<% test.results.reverse.each_with_index do |x, i| %>
+ <% unless x.nil? %>
- 测试<%=test.results.size-i%>
<% if x["status"].to_i != 0 %>
<% if x["status"].to_i == 2 %>
@@ -160,6 +161,7 @@
<% end %>
<% end %>
+ <% end %>
<% end %>
diff --git a/app/views/users/user_commit_homework.html.erb b/app/views/users/user_commit_homework.html.erb
index 40fd9d241..cab3c55ab 100644
--- a/app/views/users/user_commit_homework.html.erb
+++ b/app/views/users/user_commit_homework.html.erb
@@ -101,6 +101,7 @@
<% test.results.reverse.each_with_index do |x, i| %>
+ <% unless x.nil? %>
- 测试<%=test.results.size-i%>
<% if x["status"].to_i != 0 %>
<% if x["status"].to_i == 2 %>
@@ -125,6 +126,7 @@
<% end %>
+ <% end %>
<% end %>