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

<%= time_ago_in_words(comment.created_at) %> ago

<%= format_text(comment.body) %>
  • Reply
  • <% if CurrentUser.user.is_janitor? || CurrentUser.user.id == comment.creator_id %>
  • <%= link_to "Delete", comment_path(comment.id), :confirm => "Do you really want to delete this comment?", :method => :delete %>
  • <%= link_to "Edit", edit_comment_path(comment.id) %>
  • <% end %>
  • <%= link_to "Vote up", comment_votes_path(:comment_id => comment.id, :score => "up"), :method => :post, :remote => true %>
  • <%= link_to "Vote down", comment_votes_path(:comment_id => comment.id, :score => "down"), :method => :post, :remote => true %>