From 09958bc207b3cf01eb55193047b2b6896879c456 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Wed, 4 Aug 2010 15:43:24 -0700 Subject: [PATCH] DG MS; removed delete friend button from current user's show page --- app/views/people/show.html.haml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index d9089e4e3..b29699997 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -2,14 +2,14 @@ #profile.span-19.last .profile_photo = person_image_link(@person) + + %h1 + = @person.real_name + - unless @person.id == current_user.id + .button.right + = link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete %ul - %li - %h1 - = @person.real_name - .button.right - = link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete - -unless @person_posts.first.nil? %li %i= "last seen: #{how_long_ago(@person_posts.first)}" @@ -18,16 +18,12 @@ %li url: = @person.url - - unless @latest_status_message.nil? %h1.pinched %span = "\"#{@latest_status_message.message}\"" %span="posted: #{how_long_ago(@latest_status_message)}" - - - .span-20.last - if @person.posts