<%= link_to_user comment.creator %>

<%= time_ago_in_words_tagged(comment.created_at) %>

<%= format_text(comment.body) %> <% if comment.updated_at - comment.created_at > 5.minutes %>

Updated by <%= link_to_user comment.updater %> <%= 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 => "Are you sure you want to delete this comment?", :method => :delete, :remote => true %>
  • <%= link_to "Edit", edit_comment_path(comment.id), :id => "edit_comment_link_#{comment.id}", :class => "edit_comment_link" %>
  • <% end %> <% end %>
    <% if comment.editable_by?(CurrentUser.user) %> <%= render "comments/form", :comment => comment %> <% end %> <% end %>