<% if comment.previewing %>
<%= comment.user.username %>
previewed
just now
<% else %>
<%= comment.user.username
%>
<%= comment.has_been_edited?? "edited" : "" %>
<%= raw(time_ago_in_words_label(comment.has_been_edited? ?
comment.updated_at : comment.created_at).gsub(/^about /, "")) %> ago
<% end %>
<% if !comment.previewing %>
|
link
<% if comment.is_editable_by_user?(@user) %>
|
<% end %>
<% if comment.is_gone? && comment.is_undeletable_by_user?(@user) %>
|
<% elsif !comment.is_gone? && comment.is_deletable_by_user?(@user) %>
|
<% end %>
<% if !story.is_gone? && !comment.is_gone? &&
!(defined?(show_story) && show_story) %>
|
<% end %>
<% if comment.downvotes > 0 && comment.user_id == @user.try(:id) %>
| <%= comment.vote_summary.downcase %>
<% elsif comment.current_vote && comment.current_vote[:vote] == -1 %>
| <%= Vote::COMMENT_REASONS[comment.current_vote[:reason]].downcase
%>
<% end %>
<% end %>
<% if defined?(show_story) && show_story %>
| on:
<%= story.title %>
<% end %>
[<%= comment.gone_text %>]
<% else %> <%= raw comment.markeddown_comment %> <% end %>