Removing destroy link from albums that are not yours

This commit is contained in:
ilya 2010-07-23 16:07:15 -07:00
parent 79aa12ee67
commit 1c0d5f6e6b

View file

@ -3,7 +3,8 @@
- for photo in @album_photos
= link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo)
%p
= link_to "Destroy", @album, :confirm => 'Are you sure?', :method => :delete
-if mine? @album
%p
= link_to "Destroy", @album, :confirm => 'Are you sure?', :method => :delete
|
= link_to "View All", albums_path