]> cat aescling's git repositories - mastodon.git/commitdiff
Fix authorized applications list page design (#9969)
authorrinsuki <428rinsuki+git@gmail.com>
Mon, 4 Feb 2019 21:25:42 +0000 (06:25 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 4 Feb 2019 21:25:42 +0000 (22:25 +0100)
app/controllers/oauth/authorized_applications_controller.rb

index 0c28d194bc82c8c1643ba0aaffd827f19b97d42b..f3d2353669464c0e91af032fe46168fdfc31a14f 100644 (file)
@@ -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