Commit fa150314f54777ca96bf38e57cef09d843c3de3c
1 parent
c7741f56
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
oauth_provider: style added in athorization view
Showing
4 changed files
with
30 additions
and
3 deletions
Show diff stats
plugins/oauth_provider/controllers/oauth_provider_authorizations_controller.rb
0 → 100644
plugins/oauth_provider/lib/oauth_provider_plugin.rb
| ... | ... | @@ -8,6 +8,10 @@ class OauthProviderPlugin < Noosfero::Plugin |
| 8 | 8 | _("Oauth Provider.") |
| 9 | 9 | end |
| 10 | 10 | |
| 11 | + def stylesheet? | |
| 12 | + true | |
| 13 | + end | |
| 14 | + | |
| 11 | 15 | Doorkeeper.configure do |
| 12 | 16 | orm :active_record |
| 13 | 17 | |
| ... | ... | @@ -36,7 +40,8 @@ class OauthProviderPlugin < Noosfero::Plugin |
| 36 | 40 | use_doorkeeper do |
| 37 | 41 | controllers ({ |
| 38 | 42 | :applications => 'oauth_provider_applications', |
| 39 | - :authorized_applications => 'oauth_provider_authorized_applications' | |
| 43 | + :authorized_applications => 'oauth_provider_authorized_applications', | |
| 44 | + :authorizations => 'oauth_provider_authorizations' | |
| 40 | 45 | }) |
| 41 | 46 | end |
| 42 | 47 | end | ... | ... |
plugins/oauth_provider/views/doorkeeper/authorizations/new.html.erb
| 1 | +<div class="oauth-provider-authorize"> | |
| 2 | + | |
| 1 | 3 | <header class="page-header" role="banner"> |
| 2 | 4 | <h1><%= _('Authorize required') %></h1> |
| 3 | 5 | </header> |
| ... | ... | @@ -26,7 +28,7 @@ |
| 26 | 28 | <%= hidden_field_tag :state, @pre_auth.state %> |
| 27 | 29 | <%= hidden_field_tag :response_type, @pre_auth.response_type %> |
| 28 | 30 | <%= hidden_field_tag :scope, @pre_auth.scope %> |
| 29 | - <%= submit_tag _("Authorize"), class: "btn btn-success btn-lg btn-block" %> | |
| 31 | + <%= submit_button :ok, _("Authorize") %> | |
| 30 | 32 | <% end %> |
| 31 | 33 | <%= form_tag oauth_authorization_path, method: :delete do %> |
| 32 | 34 | <%= hidden_field_tag :client_id, @pre_auth.client.uid %> |
| ... | ... | @@ -34,7 +36,8 @@ |
| 34 | 36 | <%= hidden_field_tag :state, @pre_auth.state %> |
| 35 | 37 | <%= hidden_field_tag :response_type, @pre_auth.response_type %> |
| 36 | 38 | <%= hidden_field_tag :scope, @pre_auth.scope %> |
| 37 | - <%= submit_tag _("Deny"), class: "btn btn-danger btn-lg btn-block" %> | |
| 39 | + <%= submit_button :cancel, _("Deny") %> | |
| 38 | 40 | <% end %> |
| 39 | 41 | </div> |
| 40 | 42 | </main> |
| 43 | +</div> | ... | ... |