36 lines
2.8 KiB
Plaintext
36 lines
2.8 KiB
Plaintext
<div class="homepagePostReplyBanner">
|
||
<div class="homepagePostReplyBannerCount">
|
||
<span>回复</span>
|
||
<span class="reply_iconup" > ︿</span>
|
||
<sapn class="mr15"><%= count>0 ? "(#{count})" : "" %></sapn><span style="color: #cecece;">▪</span>
|
||
<span id="praise_count_<%=user_activity_id %>">
|
||
<%=render :partial=> "praise_tread/praise", :locals => {:activity=>activity, :user_activity_id=>user_activity_id,:type=>"activity"}%>
|
||
</span>
|
||
</div>
|
||
<div class="homepagePostReplyBannerTime"><%#= format_date(activity.updated_on) %></div>
|
||
<%if count>3 %>
|
||
<div class="homepagePostReplyBannerMore">
|
||
<% if activity.class.to_s == 'HomeworkCommon' && is_in_course == -1 %>
|
||
<a id="reply_btn_<%=user_activity_id%>" onclick="expand_reply_homework('#reply_div_<%= user_activity_id %> li','#reply_btn_<%=user_activity_id%>',<%= activity.id %>,'HomeworkCommon',<%=user_activity_id %>,-1,<%=course_activity %>,<%=user_activity_id %>)" data-count="<%= count %>" data-init="0" class=" replyGrey" href="javascript:void(0)" value="show_help" >
|
||
展开更多
|
||
</a>
|
||
<% elsif activity.class.to_s == 'HomeworkCommon' %>
|
||
<a id="reply_btn_<%=activity.id%>" onclick="expand_reply_homework('#reply_div_<%= activity.id %> li','#reply_btn_<%=activity.id%>',<%= activity.id %>,'HomeworkCommon',<%=activity.id %>,<%=is_in_course %>,-1, -1)" data-count="<%= count %>" data-init="0" class=" replyGrey" href="javascript:void(0)" value="show_help" >
|
||
展开更多
|
||
</a>
|
||
<% elsif activity.class.to_s == 'Message' %>
|
||
<a id="reply_btn_<%=user_activity_id%>" onclick="expand_message_reply('#reply_div_<%= user_activity_id %> li','#reply_btn_<%=user_activity_id%>',<%= activity.id %>,'<%=activity.class %>',<%=user_activity_id %>,<%=is_course %>,<%=is_board %>)" data-count="<%= count %>" data-init="0" class=" replyGrey" href="javascript:void(0)" value="show_help" >
|
||
展开更多
|
||
</a>
|
||
<% elsif activity.class.to_s == 'BlogComment' %>
|
||
<a id="reply_btn_<%=user_activity_id%>" onclick="expand_blog_comment_reply('#reply_div_<%= user_activity_id %> li','#reply_btn_<%=user_activity_id%>',<%= activity.id %>,'<%=activity.class %>',<%=user_activity_id %>,<%=homepage %>)" data-count="<%= count %>" data-init="0" class=" replyGrey" href="javascript:void(0)" value="show_help" >
|
||
展开更多
|
||
</a>
|
||
<% else %>
|
||
<a id="reply_btn_<%=user_activity_id%>" onclick="expand_all_reply('#reply_div_<%= user_activity_id %> li','#reply_btn_<%=user_activity_id%>',<%= activity.id %>,'<%=activity.class %>',<%=user_activity_id %>)" data-count="<%= count %>" data-init="0" class=" replyGrey" href="javascript:void(0)" value="show_help" >
|
||
展开更多
|
||
</a>
|
||
<% end %>
|
||
</div>
|
||
<% end %>
|
||
</div> |