From 2864e32efa3f9a192728d42b636259c6cdb6ccc4 Mon Sep 17 00:00:00 2001 From: Bruno Canepa <8711973+bruncanepa@users.noreply.github.com> Date: Thu, 4 Dec 2025 17:01:14 -0300 Subject: [PATCH] Move theme button into the user profile page --- app/views/layouts/application.html.erb | 16 ---------------- app/views/users/_theme.html.erb | 16 ++++++++++++++++ app/views/users/show.html.erb | 4 ++++ 3 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 app/views/users/_theme.html.erb diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a71c3fc49..6aef1f1bc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -7,22 +7,6 @@ Skip to main content <%= render "my/menu" if Current.user %> <%= yield :header %> - <%= render "layouts/shared/flash" %> diff --git a/app/views/users/_theme.html.erb b/app/views/users/_theme.html.erb new file mode 100644 index 000000000..6ba153326 --- /dev/null +++ b/app/views/users/_theme.html.erb @@ -0,0 +1,16 @@ + diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index eec6444a0..cb95a38fd 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,6 +1,10 @@ <% @page_title = @user.name %> <% me_or_you = Current.user == @user ? "me" : @user.first_name %> +<% if Current.user == @user %> + <%= render "users/theme" %> +<% end %> +