From dae5906b6a7586df1064c00ff2d91c5faa3e0931 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Tue, 21 Dec 2010 12:56:28 -0800 Subject: [PATCH] ownership render bug fixed on photoshow --- app/views/photos/show.html.haml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index c22064be3..2466693d7 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -30,14 +30,12 @@ %hr - .photo_options{:data=>{:actor=>"#{@photo.person.owner.id}",:actor_person=>"#{@photo.person.id}",:image_url=>"#{@photo.url(:thumb_large)}"}} - = link_to t('.make_profile_photo'), {:controller => "photos", :action => "make_profile_photo", :photo_id => @photo.id}, :remote => true, :class => 'make_profile_photo' - | - = link_to t('.edit'), '#', :id => "edit_photo_toggle" + - if @ownership + .photo_options{:data=>{:actor=>"#{@photo.person.owner.id}",:actor_person=>"#{@photo.person.id}",:image_url=>"#{@photo.url(:thumb_large)}"}} + = link_to t('.make_profile_photo'), {:controller => "photos", :action => "make_profile_photo", :photo_id => @photo.id}, :remote => true, :class => 'make_profile_photo' + | + = link_to t('.edit'), '#', :id => "edit_photo_toggle" - %br - - -if @ownership #photo_edit_options %h4= t('.edit_delete_photo') %p