班级作业列表中“赞”和“取消点赞”不可用
This commit is contained in:
parent
80b8fc4444
commit
03c093fb13
|
@ -302,7 +302,7 @@
|
||||||
|
|
||||||
<% count=homework_common.journals_for_messages.count %>
|
<% count=homework_common.journals_for_messages.count %>
|
||||||
<div class="homepagePostReply">
|
<div class="homepagePostReply">
|
||||||
<%= render :partial => 'users/reply_banner', :locals => {:count => count, :activity => homework_common, :user_activity_id => -1, :is_in_course => is_in_course,:course_activity=>-1} %>
|
<%= render :partial => 'users/reply_banner', :locals => {:count => count, :activity => homework_common, :user_activity_id => homework_common.id, :is_in_course => is_in_course,:course_activity=>-1} %>
|
||||||
|
|
||||||
<% comments = homework_common.journals_for_messages.reorder("created_on desc").limit(3) %>
|
<% comments = homework_common.journals_for_messages.reorder("created_on desc").limit(3) %>
|
||||||
<% if count > 0 %>
|
<% if count > 0 %>
|
||||||
|
|
Loading…
Reference in New Issue