From: rinsuki <428rinsuki+git@gmail.com> Date: Mon, 4 Feb 2019 21:25:42 +0000 (+0900) Subject: Fix authorized applications list page design (#9969) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=88f35f339d19eed87bb3b55ebd5ed2303726aa78;p=mastodon.git Fix authorized applications list page design (#9969) --- diff --git a/app/controllers/oauth/authorized_applications_controller.rb b/app/controllers/oauth/authorized_applications_controller.rb index 0c28d194b..f3d235366 100644 --- a/app/controllers/oauth/authorized_applications_controller.rb +++ b/app/controllers/oauth/authorized_applications_controller.rb @@ -5,6 +5,7 @@ class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicatio before_action :store_current_location before_action :authenticate_resource_owner! + before_action :set_body_classes include Localized @@ -15,6 +16,10 @@ class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicatio private + def set_body_classes + @body_classes = 'admin' + end + def store_current_location store_location_for(:user, request.url) end