作业列表界面和动态列表界面显示不一致

Branch_szzh
sw 10 years ago
parent 5f42ce4c80
commit c09478c73f

@ -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?

Loading…
Cancel
Save