From 28b264c71e7617d0668ce813259a57583f229e01 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 25 Mar 2009 14:36:22 -0300 Subject: [PATCH] ActionItem934: delete button in the right --- app/views/content_viewer/_comment.rhtml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/content_viewer/_comment.rhtml b/app/views/content_viewer/_comment.rhtml index 323d5a6..b2cac8b 100644 --- a/app/views/content_viewer/_comment.rhtml +++ b/app/views/content_viewer/_comment.rhtml @@ -1,6 +1,12 @@ <%= content_tag('a', '', :name => comment.anchor) %>
- + + <% if logged_in? && (user == @page.profile || user == comment.author || user.has_permission?(:moderate_comments, @page.profile)) %> + <% button_bar(:style => 'float: right; margin-top: 0px;') do %> + <%= icon_button(:delete, _('Remove this comment'), { :profile => params[:profile], :remove_comment => comment.id }, :method => :post, :confirm => _('Are you sure you want to remove this comment?')) %> + <% end %> + <% end %> + <% if comment.author %> <%= link_to content_tag( 'span', comment.author.name() ), comment.author.url, :class => 'comment-picture', @@ -14,12 +20,6 @@ %> <% end %> - <% if logged_in? && (user == @page.profile || user == comment.author || user.has_permission?(:moderate_comments, @page.profile)) %> - <% button_bar(:style => 'float: right; margin-top: 0;') do %> - <%= icon_button(:delete, _('Remove'), { :profile => params[:profile], :remove_comment => comment.id }, :method => :post, :confirm => _('Are you sure you want to remove this comment?')) %> - <% end %> - <% end %> -

<%= comment.title %>

<%= _('By %{author} on %{date}') % { -- libgit2 0.21.2