无法展开隐藏楼层

This commit is contained in:
cxt 2016-05-17 15:52:24 +08:00
parent 55a98d8d6e
commit ddafa79835
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<div class="orig_cont clearfix">
<% unless comment.parent.nil? %>
<div id="comment_reply_<%=comment.id %>">
<div>
<%=render :partial => 'users/comment_reply', :locals => {:comment => comment.parent} %>
</div>
<% end %>

View File

@ -352,12 +352,16 @@
<% else %>
<div class="orig_cont clearfix">
<div class="orig_cont clearfix">
<div id="comment_reply_<%=parents_rely[length - 1].id %>">
<div>
<%=render :partial => 'users/comment_reply', :locals => {:comment => parents_rely[length - 1]} %>
</div>
<%=render :partial => 'users/comment_reply_detail', :locals => {:comment => parents_rely[length - 2]} %>
</div>
<div class="orig_cont_hide clearfix"><span class="orig_icon" >&darr; </span><span class="orig_icon" style="display:none;" > &uarr;</span><%= link_to '点击展开隐藏楼层', show_all_replies_users_path(:comment => comment),:remote=>true %></div>
<div class="orig_cont_hide clearfix">
<span class="orig_icon" >&darr; </span>
<span class="orig_icon" style="display:none;" > &uarr;</span>
<%= link_to '点击展开隐藏楼层', show_all_replies_users_path(:comment => comment),:remote=>true %>
</div>
<%=render :partial => 'users/comment_reply_detail', :locals => {:comment => parents_rely[0]} %>
</div>
<% end %>