diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b18d0c706..d21eb48a9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -2366,6 +2366,8 @@ module ApplicationHelper end end end + else + link_to "提交(#{homework.student_works.count})",student_work_index_path(:homework => homework.id),:class => "c_blue" end end diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb index 31502c081..2d3bc68de 100644 --- a/app/views/users/_course_homework.html.erb +++ b/app/views/users/_course_homework.html.erb @@ -24,12 +24,10 @@ 匿评已结束 <% end%>
- <% if User.current.member_of_course?(activity.course) %> -
- <% is_teacher = User.current.allowed_to?(:as_teacher,activity.course) %> - <%= user_for_homework_common activity,is_teacher %> -
- <% end %> +
+ <% is_teacher = User.current.allowed_to?(:as_teacher,activity.course) %> + <%= user_for_homework_common activity,is_teacher %> +
<% if activity.homework_type == 2 && is_teacher%>