<% if comment.previewing %>
<%= comment.user.username %>
previewed
just now
<% else %>
<%= comment.user.username
%>
<%= comment.has_been_edited?? "edited" : "" %>
<%= time_ago_in_words(comment.has_been_edited?? comment.updated_at :
comment.created_at).gsub(/^about /, "") %> ago
<%= comment.current_vote &&
comment.current_vote[:vote] == -1 ?
"(#{Vote::COMMENT_REASONS[comment.current_vote[:reason]].downcase})" :
"" %>
<% end %>
<% if !comment.previewing %>
|
link
<% if !story.is_gone? %>
|
<% if comment.is_editable_by_user?(@user) %>
<% else %>
<% end %>
<% end %>
<% if false && defined?(collapsable) && collapsable # XXX %>
|
collapse
<% end %>
<% end %>
<% if defined?(show_story) && show_story %>
| on:
<%= story.title %>
<% end %>