From 0d5100984e450940d79b13ab1c9afe9c8bd5ebab Mon Sep 17 00:00:00 2001 From: Coleman Date: Fri, 17 Oct 2008 01:27:46 -0500 Subject: [PATCH] show the user that uploaded the image, too --- app/views/photos/moderate.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/photos/moderate.html.haml b/app/views/photos/moderate.html.haml index 9aedfc5..8663c0d 100644 --- a/app/views/photos/moderate.html.haml +++ b/app/views/photos/moderate.html.haml @@ -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