From 79aa12ee67b3cf274385485c72f853a2330161ac Mon Sep 17 00:00:00 2001 From: ilya Date: Fri, 23 Jul 2010 15:59:42 -0700 Subject: [PATCH] RS IZ Removing the destroy link from photos --- app/views/photos/show.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index a3f0915f0..effb40f33 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -14,8 +14,9 @@ | = link_to_next @photo, @album - %p - = link_to "Destroy", @photo, :confirm => 'Are you sure?', :method => :delete + -if mine?(@photo) + %p + = link_to "Destroy", @photo, :confirm => 'Are you sure?', :method => :delete %p = link_to "<< back to album", album_path(@album)