From 5313bf0e3d1d8da4e723f79e915a6f50d0ea38a0 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 19 Sep 2015 10:48:37 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=B7=E4=BD=93=E8=AF=BE=E7=A8=8B=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A=E5=88=97=E8=A1=A8=E4=B8=AD=E4=B9=9F=E5=BA=94=E8=AF=A5?=
=?UTF-8?q?=E7=9C=8B=E5=88=B0=E7=BC=96=E7=A8=8B=E4=BD=9C=E4=B8=9A=E7=9A=84?=
=?UTF-8?q?=E5=8C=BF=E8=AF=84=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/helpers/application_helper.rb | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 1982542a9..d7fac9a7d 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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
"未开启匿评".html_safe
@@ -2377,10 +2377,6 @@ module ApplicationHelper
when 3
"匿评已结束".html_safe
end
- elsif homework.homework_type == 0
- "未启用匿评".html_safe
- elsif homework.homework_type == 2
- " 编程作业 ".html_safe
end
end