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