RS IZ Removing the destroy link from photos
This commit is contained in:
parent
f866872d7a
commit
79aa12ee67
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue