From ea6cc300f1420645c6088ddef7a8ab6d248fde96 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 3 Jun 2025 05:29:46 +0300 Subject: [PATCH] Add profile editing navigation tabs --- app/views/profiles/descriptions/show.html.erb | 3 +++ app/views/profiles/profile_sections/_navigation.html.erb | 5 +++++ config/locales/en.yml | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 app/views/profiles/profile_sections/_navigation.html.erb diff --git a/app/views/profiles/descriptions/show.html.erb b/app/views/profiles/descriptions/show.html.erb index 7c4cd5ba6..8a053e61e 100644 --- a/app/views/profiles/descriptions/show.html.erb +++ b/app/views/profiles/descriptions/show.html.erb @@ -2,8 +2,11 @@ <%= javascript_include_tag "user" %> <% end %> +<% content_for :heading_class, "pb-0" %> + <% content_for :heading do %>

<%= t ".title" %>

+ <%= render :partial => "navigation" %> <% end %> <%= render :partial => "layouts/control_icons", :locals => { :icons => %w[zoomin zoomout geolocate] } %> diff --git a/app/views/profiles/profile_sections/_navigation.html.erb b/app/views/profiles/profile_sections/_navigation.html.erb new file mode 100644 index 000000000..4c6bd645c --- /dev/null +++ b/app/views/profiles/profile_sections/_navigation.html.erb @@ -0,0 +1,5 @@ + diff --git a/config/locales/en.yml b/config/locales/en.yml index 33310b193..a5522099d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1994,6 +1994,9 @@ en: title: My Advanced Preferences save: Update Preferences profiles: + profile_sections: + navigation: + description: Description descriptions: show: title: Edit Profile -- 2.39.5