diff --git a/app/views/application/_navbar.html.erb b/app/views/application/_navbar.html.erb index 6822325..08cd945 100644 --- a/app/views/application/_navbar.html.erb +++ b/app/views/application/_navbar.html.erb @@ -32,12 +32,12 @@ role: :button, class: 'dropdown-item' %> - <% if user_signed_in? %> - <%= link_to translate('users.shared.links.settings'), - edit_user_registration_path, - role: :button, - class: 'dropdown-item' %> + <%= link_to translate('users.shared.links.settings'), + edit_settings_profile_path, + role: :button, + class: 'dropdown-item' %> + <% if user_signed_in? %> <%= link_to translate('users.shared.links.sign_out'), diff --git a/app/views/settings/_nav_sidebar.html.erb b/app/views/settings/_nav_sidebar.html.erb index 3d1c69c..9c3085a 100644 --- a/app/views/settings/_nav_sidebar.html.erb +++ b/app/views/settings/_nav_sidebar.html.erb @@ -1,14 +1,14 @@
- <%= link_to translate(:credentials, scope: %i[nav_tabs settings]), - edit_user_registration_path, - class: 'list-group-item list-group-item-action ' \ - "#{:active if tab == :credentials}" %> - <%= link_to translate(:profile, scope: %i[nav_tabs settings]), edit_settings_profile_path, class: 'list-group-item list-group-item-action ' \ "#{:active if tab == :profile}" %> + <%= link_to translate(:credentials, scope: %i[nav_tabs settings]), + edit_user_registration_path, + class: 'list-group-item list-group-item-action ' \ + "#{:active if tab == :credentials}" %> + <%= link_to translate(:telegram_contacts, scope: %i[nav_tabs settings]), settings_telegram_contacts_path, class: 'list-group-item list-group-item-action '\