From c33a952bbd30f7b57ae0e29b3795a1545cfee014 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Mon, 28 Mar 2011 11:22:03 -0700 Subject: [PATCH] Forgot parens --- app/views/comments/_comment.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_comment.html.haml b/app/views/comments/_comment.html.haml index 2a55fcd9a..9fd2b83e1 100644 --- a/app/views/comments/_comment.html.haml +++ b/app/views/comments/_comment.html.haml @@ -3,7 +3,7 @@ -# the COPYRIGHT file. %li.comment.posted{:data=>{:guid => comment.id}, :class => ("hidden" if(defined? hidden))} - - if current_user && current_user.owns?(comment) || current_user.owns?(comment.post) + - if current_user && (current_user.owns?(comment) || current_user.owns?(comment.post)) .right.controls = link_to image_tag('deletelabel.png'), comment_path(comment), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete comment_delete", :title => t('delete') = person_image_link(comment.author)