具体课程作业列表中也应该看到编程作业的匿评状态

This commit is contained in:
sw 2015-09-19 10:48:37 +08:00
parent 7ba27026ae
commit 5313bf0e3d
1 changed files with 1 additions and 5 deletions

View File

@ -2368,7 +2368,7 @@ module ApplicationHelper
end
def student_anonymous_comment homework
if homework.homework_type == 1 && homework.homework_detail_manual
if homework.homework_detail_manual
case homework.homework_detail_manual.comment_status
when 1
"<span class='fr mr10 pr_join_span '>未开启匿评</span>".html_safe
@ -2377,10 +2377,6 @@ module ApplicationHelper
when 3
"<span class='fr mr10 pr_join_span '>匿评已结束</span>".html_safe
end
elsif homework.homework_type == 0
"<span class='fr mr10 pr_join_span '>未启用匿评</span>".html_safe
elsif homework.homework_type == 2
"<span class='fr mr10 pr_join_span '>&nbsp;编程作业&nbsp;&nbsp;</span>".html_safe
end
end