<% 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 %>
<% comment.replies.each do |reply| %> <%= render :partial => 'comment', :locals => { :comment => reply } %> <% end %>
<% end %>