diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index c616e2c21..4305f7675 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -1,6 +1,10 @@ <% @page_title = "Edit your profile" %> -
+<% content_for :header do %> + <%= render "my/menus/menu" %> +<% end %> + +
<%= form_with model: @user, method: :patch, class: "flex flex-column gap", data: { controller: "form upload-preview" } do |form| %>
@@ -24,18 +28,15 @@
-
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index de53c2ee9..17abf2318 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,6 +1,10 @@ <% @page_title = @user.name %> -
+<% content_for :header do %> + <%= render "my/menus/menu" %> +<% end %> + +
<% if Current.user == @user %> <%= link_to edit_user_path(@user), class: "user-edit-link btn" do %> @@ -9,8 +13,8 @@ <% end %> <% end %> -
- <%= image_tag user_avatar_path(@user), alt: "Profile avatar for #{@user.name}", size: 128 %> +
+ <%= image_tag user_avatar_path(@user), alt: "Profile avatar for #{@user.name}" %>
@@ -32,15 +36,14 @@
<% if Current.user == @user %> -
+
<%= render "users/transfer", user: @user %> -
-
- <%= button_to session_path, method: :delete, class: "btn center txt-medium", data: { turbo: false } do %> - <%= icon_tag "logout" %> +
+ <%= button_to session_path, method: :delete, class: "btn btn--plain txt-link txt-small", data: { turbo: false } do %> Sign out <% end %> +
<% end %>