From 8c01465ae4485d5c36c614c09ad856e2b3db8f08 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 19 Jun 2019 13:49:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=AF=95=E5=8D=B7=E7=AD=94?= =?UTF-8?q?=E9=A2=98=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/exercise/_exercise_student_result.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/exercise/_exercise_student_result.html.erb b/app/views/exercise/_exercise_student_result.html.erb index 7805cb60..a161ee7f 100755 --- a/app/views/exercise/_exercise_student_result.html.erb +++ b/app/views/exercise/_exercise_student_result.html.erb @@ -142,7 +142,7 @@ <% if @show_score %> <% answer = get_user_answer(exercise_question, user) %>

- mr3"><%= answer.empty? ? 0 : (answer.first.score == -1 ? "未批" : answer.first.score) %><%= answer.empty? ? "分" : (answer.first.score == -1 ? "" : "分") %> + mr3"><%= answer.empty? ? 0 : (answer.first.score == -1 ? "未批" : answer.first.score) %><%= answer.empty? ? "分" : (answer.first.score == -1 ? "" : "分") %>

<% end %> <% end %> @@ -269,7 +269,7 @@ <% end %> - <% if !answer.empty? %> + <% if !answer.blank? %> <% if @is_teacher %>
<%= render :partial => "answer_comment", :locals => {:answer => answer.first, :exercise_question => exercise_question} %>