edit profile link on owner's profile page.

This commit is contained in:
danielvincent 2010-10-29 15:02:56 -07:00
parent 7acc138a21
commit f2b7e4010e
2 changed files with 5 additions and 0 deletions

View file

@ -30,6 +30,10 @@
- if @person != current_user.person && current_user.friends.include?(@person) - if @person != current_user.person && current_user.friends.include?(@person)
= link_to t('.remove_friend'), @person, :confirm => t('.are_you_sure'), :method => :delete, :class => "button" = link_to t('.remove_friend'), @person, :confirm => t('.are_you_sure'), :method => :delete, :class => "button"
- if @person == current_user.person
%b
= link_to "Edit my profile", edit_person_path(@person)
%br %br
%br %br
%ul %ul

View file

@ -262,6 +262,7 @@ header
:position absolute :position absolute
:top 7px :top 7px
:left 0 :left 0
:-webkit-box-shadow 0 1px 2px #666
h2 h2
:margin :margin