<% if defined?(was_merged) && was_merged %>
<% end %>
class="inactive_user"
<% elsif comment.user.is_new? %>
class="new_user"
<% end %>
><%= comment.user.username %>
<% if comment.hat %>
<%= comment.hat.to_html_label %>
<% end %>
<% if comment.previewing %>
previewed
just now
<% else %>
<% if comment.has_been_edited? %>
edited
<% elsif comment.is_from_email? %>
e-mailed
<% end %>
<%= time_ago_in_words_label((comment.has_been_edited? ?
comment.updated_at : comment.created_at), :strip_about => true) %> 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 @user && !comment.story.is_gone? && !comment.is_gone? %>
|
<% end %>
<% if comment.downvotes > 0 &&
((comment.score <= 0 && comment.user_id == @user.try(:id)) ||
@user.try("is_moderator?")) %>
| <%= comment.vote_summary.downcase %>
<% elsif comment.current_vote && comment.current_vote[:vote] == -1 %>
| -1
<%= Vote::COMMENT_REASONS[comment.current_vote[:reason]].downcase %>
<% end %>
<% end %>
<% if defined?(show_story) && show_story %>
| on:
<%= comment.story.title
%>
<% end %>
[<%= comment.gone_text %>]
<% else %> <%= raw comment.markeddown_comment %> <% end %>