From 259c32226253849c9e80055dceaf4daa117a7721 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 4 Jun 2025 04:39:49 +0300 Subject: [PATCH] Add "Edit Location" button to user profile --- app/views/users/show.html.erb | 4 +- config/locales/en.yml | 1 + test/system/profile_location_change_test.rb | 46 +++++++++++++++------ 3 files changed, 38 insertions(+), 13 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 5405d7821..e6a178ca7 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -246,7 +246,9 @@ :edit_path => profile_image_path do %> <% end %> - <%= render "sidebar_section", :present => @user.home_location_name&.strip.present? do %> + <%= render "sidebar_section", :present => @user.home_location_name&.strip.present?, + :edit_title => t(".edit_location"), + :edit_path => profile_location_path do %>