show the user that uploaded the image, too

master
Coleman 2008-10-17 01:27:46 -05:00
parent 6af005cf94
commit 0d5100984e
1 changed files with 2 additions and 0 deletions

View File

@ -19,4 +19,6 @@
|
== #{photo.photo_flags_count} Flags
|
== #{photo.user.user_name rescue 'Unknown'}
|
%a{ :href => '#', :onclick => "if(confirm('Are you sure you want to destroy this photo?')){ new Ajax.Request('#{url(:photo, photo)}', { method: 'delete', onSuccess: function() { new Effect.DropOut($('photo_#{photo.id}')); } }); return false; }" } Destroy