我的作业报500

This commit is contained in:
cxt 2016-08-11 16:12:48 +08:00
parent 951390092b
commit 4a25b6357b
1 changed files with 1 additions and 1 deletions

View File

@ -2841,7 +2841,7 @@ module ApplicationHelper
#获取当前作业的提交截止时间/互评截止时间 #获取当前作业的提交截止时间/互评截止时间
def cur_homework_end_time homework def cur_homework_end_time homework
str = "" str = ""
if homework.anonymous_comment == 0 && homework.end_time < Date.today && homework.homework_detail_manual if homework.anonymous_comment == 0 && homework.end_time && homework.end_time < Date.today && homework.homework_detail_manual
str = "互评截止:#{format_date homework.homework_detail_manual.evaluation_end}" str = "互评截止:#{format_date homework.homework_detail_manual.evaluation_end}"
else else
str = "提交截止:#{homework.end_time ? (format_date homework.end_time) : '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'}" str = "提交截止:#{homework.end_time ? (format_date homework.end_time) : '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'}"