diff --git a/app/views/projects/_project_message_contents.html.erb b/app/views/projects/_project_message_contents.html.erb index cbdf6c960..b0b38cc8e 100644 --- a/app/views/projects/_project_message_contents.html.erb +++ b/app/views/projects/_project_message_contents.html.erb @@ -7,20 +7,17 @@ <% parents_rely = get_reply_parents_no_root parents_rely, comment %> <% length = parents_rely.length %>
- <% if length <= 3 %> + <% if length <= 2 %> <%=render :partial => 'projects/journal_comment_reply', :locals => {:comment => comment.parent} %> <% else %>
-
- <%=render :partial => 'projects/journal_comment_reply', :locals => {:comment => parents_rely[length - 1]} %> -
- <%=render :partial => 'projects/comment_reply_detail', :locals => {:comment => parents_rely[length - 2]} %> + <%=render :partial => 'projects/comment_reply_detail', :locals => {:comment => parents_rely[length - 1]} %>
-
+
- - <%= link_to '点击展开隐藏楼层', show_all_replies_users_path(:comment => comment, :type => comment.class),:remote=>true %> + 已经隐藏<%=(length - 2).to_s %>个楼层 + <%= link_to '[点击展开]', show_all_replies_users_path(:comment => comment, :type => comment.class), :remote=>true, :class => 'linkBlue2' %>
<%=render :partial => 'projects/comment_reply_detail', :locals => {:comment => parents_rely[0]} %>