|
|
|
@ -2337,7 +2337,7 @@ module ApplicationHelper
|
|
|
|
|
#根据传入作业确定显示为编辑作品还是新建作品,或者显示作品数量
|
|
|
|
|
def user_for_homework_common homework,is_teacher
|
|
|
|
|
if is_teacher #老师显示作品数量
|
|
|
|
|
link_to "提交(#{homework.student_works.count})",student_work_index_path(:homework => homework.id),:class => "c_blue"
|
|
|
|
|
link_to "提交(#{homework.student_works.count})",student_work_index_path(:homework => homework.id),:class => "c_blue"
|
|
|
|
|
else #学生显示提交作品、修改作品等按钮
|
|
|
|
|
work = cur_user_works_for_homework homework
|
|
|
|
|
if work.nil?
|
|
|
|
|