adds comment show view

This commit is contained in:
rgarcia
2016-01-07 14:19:05 +01:00
parent 5e9240e25c
commit 816a95b7b7
11 changed files with 69 additions and 11 deletions

View File

@@ -13,8 +13,11 @@ module CommentsHelper
end
def child_comments_of(parent)
return [] unless @comment_tree
@comment_tree.children_of(parent)
if @comment_tree.present?
@comment_tree.ordered_children_of(parent)
else
parent.children
end
end
def user_level_class(comment)