From 1956ea03be0772248f93ad5a2f413861a9e77f59 Mon Sep 17 00:00:00 2001 From: Coleman Date: Fri, 17 Oct 2008 02:36:44 -0500 Subject: [PATCH] more styling --- app/views/photos/moderate.html.haml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/photos/moderate.html.haml b/app/views/photos/moderate.html.haml index 8663c0d..bb8254f 100644 --- a/app/views/photos/moderate.html.haml +++ b/app/views/photos/moderate.html.haml @@ -15,10 +15,11 @@ - @photos.each do |photo| %div.moderate_box{ :id => "photo_#{photo.id}" } %img{ :src => photo_url(photo, 300, 300) } - %a{ :href => '#', :onclick => "new Ajax.Request('#{url(:approve_photo, photo)}', { method: 'get', onSuccess: function() { new Effect.DropOut($('photo_#{photo.id}')); } }); return false;" } Approve - | - == #{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 + %p + %a{ :href => '#', :onclick => "new Ajax.Request('#{url(:approve_photo, photo)}', { method: 'get', onSuccess: function() { new Effect.DropOut($('photo_#{photo.id}')); } }); return false;" } Approve + | + == #{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