Set "admin" body class from admin
nested layout (#31269)
This commit is contained in:
parent
fd7fc7bdc3
commit
a9d0b48b65
14 changed files with 13 additions and 56 deletions
|
@ -4,7 +4,6 @@ class SeveredRelationshipsController < ApplicationController
|
|||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_body_classes
|
||||
before_action :set_cache_headers
|
||||
|
||||
before_action :set_event, only: [:following, :followers]
|
||||
|
@ -51,10 +50,6 @@ class SeveredRelationshipsController < ApplicationController
|
|||
account.local? ? account.local_username_and_domain : account.acct
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
@body_classes = 'admin'
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
response.cache_control.replace(private: true, no_store: true)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue