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
|
@ -7,6 +7,7 @@ class Settings::ProfilesController < ApplicationController
|
|||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_account
|
||||
before_action :set_body_classes
|
||||
|
||||
obfuscate_filename [:account, :avatar]
|
||||
obfuscate_filename [:account, :header]
|
||||
|
@ -34,4 +35,8 @@ class Settings::ProfilesController < ApplicationController
|
|||
def set_account
|
||||
@account = current_user.account
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
@body_classes = 'admin'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue