Set @body_classes to admin layout (#9081)
This commit is contained in:
parent
df3a7e724d
commit
e8ffecbd36
17 changed files with 89 additions and 3 deletions
|
@ -5,6 +5,7 @@ class Settings::DeletesController < ApplicationController
|
|||
|
||||
before_action :check_enabled_deletion
|
||||
before_action :authenticate_user!
|
||||
before_action :set_body_classes
|
||||
|
||||
def show
|
||||
@confirmation = Form::DeleteConfirmation.new
|
||||
|
@ -29,4 +30,8 @@ class Settings::DeletesController < ApplicationController
|
|||
def delete_params
|
||||
params.require(:form_delete_confirmation).permit(:password)
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
@body_classes = 'admin'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue