-

- { raw t('.prompt', client_name: "#{ @pre_auth.client.name }") } +

+ { raw t('.prompt', client_name: "#{ @pre_auth.client.name }") }

{ if @pre_auth.scopes.count > 0 }

{ t('.able_to') }:

-
    +
      { @pre_auth.scopes.each do |scope| }
    • { t scope, scope: [:doorkeeper, :scopes] }
    • { end } @@ -21,25 +21,25 @@
{ end } -
-
+
+
{ form_tag oauth_authorization_path, method: :post do } { hidden_field_tag :client_id, @pre_auth.client.uid } { hidden_field_tag :redirect_uri, @pre_auth.redirect_uri } { hidden_field_tag :state, @pre_auth.state } { hidden_field_tag :response_type, @pre_auth.response_type } { hidden_field_tag :scope, @pre_auth.scope } - { submit_tag t('doorkeeper.authorizations.buttons.authorize'), class: "button" } + { submit_tag t('doorkeeper.authorizations.buttons.authorize'), className: "button" } { end }
-
+
{ form_tag oauth_authorization_path, method: :delete do } { hidden_field_tag :client_id, @pre_auth.client.uid } { hidden_field_tag :redirect_uri, @pre_auth.redirect_uri } { hidden_field_tag :state, @pre_auth.state } { hidden_field_tag :response_type, @pre_auth.response_type } { hidden_field_tag :scope, @pre_auth.scope } - { submit_tag t('doorkeeper.authorizations.buttons.deny'), class: "button red-button" } + { submit_tag t('doorkeeper.authorizations.buttons.deny'), className: "button red-button" } { end }
diff --git a/views/doorkeeper/authorizations/show.html.erb b/views/doorkeeper/authorizations/show.html.erb index 4c4799ba..fefe9615 100644 --- a/views/doorkeeper/authorizations/show.html.erb +++ b/views/doorkeeper/authorizations/show.html.erb @@ -1,6 +1,6 @@
-
-