diff --git a/app/assets/stylesheets/user.css b/app/assets/stylesheets/user.css new file mode 100644 index 000000000..7afc7fb77 --- /dev/null +++ b/app/assets/stylesheets/user.css @@ -0,0 +1,6 @@ +@layer components { + .user-edit-link { + inset: 0 0 auto auto; + position: absolute; + } +} diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 82b46b9a3..2a7756172 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -5,6 +5,10 @@ class UsersController < ApplicationController before_action :ensure_join_code_is_valid, only: %i[ new create ] before_action :ensure_permission_to_change_user, only: %i[ update destroy ] + include FilterScoped + + enable_collection_filtering only: [:edit, :show] + def new @user = User.new end diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 839d00781..04c4482e9 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -1,10 +1,7 @@ <% @page_title = "Edit your profile" %> <% content_for :header do %> -