- <%= _('Authorize %s to use your account?') % "#{@pre_auth.client.name}" %> + <%= raw _('Authorize %s to use your account?') % "#{@pre_auth.client.name}" %>

- <% if @pre_auth.scopes %> + <% if @pre_auth.scopes.count > 0 %>

<%= _('This application will be able to:') %>

    <% @pre_auth.scopes.each do |scope| %> -
  • <%= OauthProviderPlugin::SCOPE_TRANSLATION[scope] %>
  • +
  • <%= t scope, scope: [:doorkeeper, :scopes] %>
  • <% end %>
diff --git a/plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb b/plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb index 0b9a6c3..aaef12c 100644 --- a/plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb +++ b/plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb @@ -25,7 +25,7 @@