|
|
|
@ -125,11 +125,17 @@
|
|
|
|
|
<% count=activity.children.count%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="homepagePostReply">
|
|
|
|
|
<div class="topBorder" style="display: <%= count<=0 && !activity.locked ? '': 'none' %>"></div>
|
|
|
|
|
<div class="homepagePostReplyBanner" style="display: <%= count>0 ? '': 'none' %>">
|
|
|
|
|
<div class="homepagePostReplyBannerCount" onclick="expand_reply_input('#reply_input_<%= user_activity_id %>');">回复(
|
|
|
|
|
<%= count %>
|
|
|
|
|
)</div>
|
|
|
|
|
<div class="homepagePostReplyBanner">
|
|
|
|
|
<div class="homepagePostReplyBannerCount">回复
|
|
|
|
|
<sapn class="mr15"><%= count>0 ? "(#{count})" : "" %></sapn><span style="color: #cecece;">▪</span>
|
|
|
|
|
<span id="praise_count_<%=user_activity_id %>">
|
|
|
|
|
<% if activity.author == User.current %>
|
|
|
|
|
<span class="ml15 likeButton"> <span class="likeText">赞</span><span class="likeNum"><%= get_praise_num(activity) > 0 ? "(#{get_praise_num(activity)})" : "" %></span></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%=render :partial=> "praise_tread/praise", :locals => {:activity=>activity, :user_activity_id=>user_activity_id,:type=>"activity"}%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyBannerTime"><%#=format_date(activity.updated_on)%></div>
|
|
|
|
|
<%if count > 3 %>
|
|
|
|
|
<div class="homepagePostReplyBannerMore">
|
|
|
|
@ -164,6 +170,13 @@
|
|
|
|
|
<%= link_to reply.try(:author).try(:realname), user_path(reply.author_id,:host=>Setting.host_user), :class => "newsBlue mr10 f14" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= format_time(reply.created_on) %>
|
|
|
|
|
<span id="reply_praise_count_<%=reply.id %>">
|
|
|
|
|
<% if reply.author == User.current %>
|
|
|
|
|
<span class="fr likeButton"> <span class="likeText">赞</span><span class="likeNum"><%= get_praise_num(reply) > 0 ? "(#{get_praise_num(reply)})" : "" %></span></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%=render :partial=> "praise_tread/praise", :locals => {:activity=>reply, :user_activity_id=>reply.id,:type=>"reply"}%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="homepagePostReplyContent break_word list_style upload_img" id="reply_content_<%= reply.id %>">
|
|
|
|
|
<%= reply.content.html_safe %>
|
|
|
|
@ -203,5 +216,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$("#moreProject_<%=user_activity_id %>").click(function(){
|
|
|
|
|
$("#relatePWrap_<%=user_activity_id %>").toggleClass('relatePWrap');
|
|
|
|
|
$("#relatePWrap_<%=user_activity_id %>").css("height","auto");
|
|
|
|
|
$(this).hide();
|
|
|
|
|
});
|
|
|
|
|
$("#hideProject_<%=user_activity_id %>").click(function(){
|
|
|
|
|
$("#relatePWrap_<%=user_activity_id %>").toggleClass('relatePWrap');
|
|
|
|
|
$("#moreProject_<%=user_activity_id %>").show();
|
|
|
|
|
});
|
|
|
|
|
$(description_show_hide(<%=user_activity_id %>));
|
|
|
|
|
</script>
|
|
|
|
|