.user-profile
  %h1= @user.name
  = link_to t(".edit"), action: :edit
  - if @profile.picture
    = image_tag @profile.picture.url
  .about
    = @profile.about

.user-profile
  %h1= @user.name
  - if @user == current_user
    = link_to t(".edit"), action: :edit
    = link_to t(".update_account"), edit_user_registration_path
  - if @profile.picture
    = image_tag @profile.picture.url
  .about
    = @profile.about

Add link to update account details, and only show them if you're viewing your own profile
Add link to update account details, and only show them if you're viewing your own profile
