老师,非课程成员 课程动态中显示 -- 提交(作品数)
This commit is contained in:
parent
bdf7bdc13e
commit
07ff8d2eb7
|
@ -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
|
||||
|
|
|
@ -24,12 +24,10 @@
|
|||
<span class="grey_btn_cir ml10">匿评已结束</span>
|
||||
<% end%>
|
||||
<div class="homepagePostSubmitContainer">
|
||||
<% if User.current.member_of_course?(activity.course) %>
|
||||
<div class="homepagePostSubmit">
|
||||
<% is_teacher = User.current.allowed_to?(:as_teacher,activity.course) %>
|
||||
<%= user_for_homework_common activity,is_teacher %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="homepagePostSubmit">
|
||||
<% is_teacher = User.current.allowed_to?(:as_teacher,activity.course) %>
|
||||
<%= user_for_homework_common activity,is_teacher %>
|
||||
</div>
|
||||
|
||||
<% if activity.homework_type == 2 && is_teacher%>
|
||||
<div class="homepagePostSubmit">
|
||||
|
|
Loading…
Reference in New Issue