DG MS; removed delete friend button from current user's show page
This commit is contained in:
parent
7afe8e12a0
commit
09958bc207
1 changed files with 6 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue