dev_xiangzheng
cxt 10 years ago
commit f58d68c61a

@ -2366,6 +2366,8 @@ module ApplicationHelper
end end
end end
end end
else
link_to "提交(#{homework.student_works.count})",student_work_index_path(:homework => homework.id),:class => "c_blue"
end end
end end

@ -24,12 +24,10 @@
<span class="grey_btn_cir ml10">匿评已结束</span> <span class="grey_btn_cir ml10">匿评已结束</span>
<% end%> <% end%>
<div class="homepagePostSubmitContainer"> <div class="homepagePostSubmitContainer">
<% if User.current.member_of_course?(activity.course) %> <div class="homepagePostSubmit">
<div class="homepagePostSubmit"> <% is_teacher = User.current.allowed_to?(:as_teacher,activity.course) %>
<% is_teacher = User.current.allowed_to?(:as_teacher,activity.course) %> <%= user_for_homework_common activity,is_teacher %>
<%= user_for_homework_common activity,is_teacher %> </div>
</div>
<% end %>
<% if activity.homework_type == 2 && is_teacher%> <% if activity.homework_type == 2 && is_teacher%>
<div class="homepagePostSubmit"> <div class="homepagePostSubmit">

Loading…
Cancel
Save