<%# Comment %>
  • <% if comment.author %> <%= link_to image_tag(profile_icon(comment.author, :minor)), Person.find(comment.author_id).url, :class => 'comment-picture', :title => comment.author_name %> <% end %>
    <%= link_to(comment.author_name, comment.author.url) %> <%= txt2html comment.body %>
    <%= time_ago_as_sentence(comment.created_at) %>
    <% if logged_in? && (user == profile || user == comment.author || user.has_permission?(:moderate_comments, profile)) %> <% button_bar(:style => 'float: right; margin-top: 0px;') do %> <%= icon_button(:delete, _('Remove'), { :action => :remove_comment, :comment_id => comment.id }, :method => :get, :confirm => _('Are you sure you want to remove this comment and all its replies?')) %> <% end %> <% end %>
    <% if @comment && @comment.errors.any? && @comment.reply_of_id.to_i == comment.id %> <%= error_messages_for :comment %> <% end %> <%= report_abuse(comment.author, :comment_link, comment) if comment.author %> <%= link_to_function _('Reply'), "var f = add_comment_reply_form(this, %s); f.find('input[name=comment[title]], textarea').val(''); return false" % comment.id, :class => 'comment-footer comment-footer-link comment-footer-hide', :id => 'comment-reply-to-' + comment.id.to_s %>
    <% unless comment.replies.blank? %> <% end %>