<%= link_to comment.creator_name, user_path(comment.creator_id) %>

<%= time_ago_in_words_tagged(comment.created_at) %>

<%= format_text(comment.body) %> <% if comment.updater_id.present? && (comment.updater_id != comment.creator_id || comment.created_at != comment.updated_at) %>

Updated by <%= link_to comment.updater_name, user_path(comment.updater_id) %> <%= time_ago_in_words_tagged(comment.updated_at) %>

<% end %>
<% if CurrentUser.is_member? %> <% if @post || @posts %>
  • <%= link_to "Reply", new_comment_path(:post_id => comment.post_id), :class => "reply-link", "data-comment-id" => comment.id %>
  • <% if comment.editable_by?(CurrentUser.user) %>
  • <%= link_to "Delete", comment_path(comment.id), :confirm => "Do you really want to delete this comment?", :method => :delete, :remote => true %>
  • <%= link_to "Edit", edit_comment_path(comment.id) %>
  • <% end %> <% end %>
    <% end %>