Permalink
Browse files

show replies to deleted comments

  • Loading branch information...
pushcx committed Oct 25, 2017
1 parent 476c04c commit 78bd01dec46df0d7ea124bfbb4a8c8051fcb473b
Showing with 13 additions and 13 deletions.
  1. +0 −4 app/models/comment.rb
  2. +13 −9 app/views/comments/_comment.html.erb
View
@@ -84,10 +84,6 @@ def self.arrange_for_user(user)
# no children to recurse
next unless children
# for moderated threads, remove the entire sub-tree at the moderation
# point
next if node.is_moderated?
# drill down a level
ancestors << subtree
subtree = children
@@ -29,17 +29,17 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
<span class="downvoter downvoter_stub"></span>
<% end %>
</div>
<% end %>
<% if defined?(children) && children %>
<% if can_downvote %>
<div class="comment_parent_tree_line can_downvote"></div>
<% elsif score_display != "&nbsp;" %>
<div class="comment_parent_tree_line score_shown"></div>
<% else %>
<div class="comment_parent_tree_line"></div>
<% if defined?(children) && children %>
<% if can_downvote %>
<div class="comment_parent_tree_line can_downvote"></div>
<% elsif score_display != "&nbsp;" %>
<div class="comment_parent_tree_line score_shown"></div>
<% else %>
<div class="comment_parent_tree_line"></div>
<% end %>
<% end %>
<% end %>
<div class="details">
<div class="byline">
<a name="c_<%= comment.short_id %>"></a>
@@ -133,6 +133,10 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
[<%= comment.gone_text %>]
</span>
</p>
<% if @user && @user.is_moderator? %>
<p>[Original visible to moderator:]</p>
<%= raw comment.markeddown_comment %>
<% end %>
<% else %>
<%= raw comment.markeddown_comment %>
<% end %>

0 comments on commit 78bd01d

Please sign in to comment.