Commit 6cc86ce6019ee3bfadaf284d36eb5276dda2339e

Authored by Victor Costa
1 parent fa150314

oauth_provider: added buttons to go back in admin views

plugins/oauth_provider/public/style.css
... ... @@ -8,3 +8,6 @@
8 8 .oauth-provider-authorize #oauth-permissions {
9 9 color: rgb(92, 92, 92);
10 10 }
  11 +.oauth-provider .actions {
  12 + margin-top: 10px;
  13 +}
... ...
plugins/oauth_provider/views/doorkeeper/applications/index.html.erb
  1 +<div class="oauth-provider">
1 2 <div class="page-header">
2 3 <h3><%= link_to _('Oauh Provider'), '/admin/plugin/oauth_provider' %></h3>
3 4 </div>
... ... @@ -24,3 +25,7 @@
24 25 <% end %>
25 26 </tbody>
26 27 </table>
  28 +<div class="actions">
  29 + <%= button(:back, _('Go back'), {:controller => 'oauth_provider_plugin_admin', :action => 'index'}) %>
  30 +</div>
  31 +</div>
... ...
plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb
  1 +<div class="oauth-provider">
1 2 <header class="page-header">
2 3 <h1>Your authorized applications</h1>
3 4 </header>
... ... @@ -23,3 +24,8 @@
23 24 </tbody>
24 25 </table>
25 26 </main>
  27 +
  28 +<div class="actions">
  29 + <%= button(:back, _('Go back'), :back) %>
  30 +</div>
  31 +</div>
... ...
plugins/oauth_provider/views/oauth_provider_plugin_admin/index.html.erb
... ... @@ -8,4 +8,7 @@
8 8 <%= link_to _('Authorized Applications'), oauth_authorized_applications_path %>
9 9 </div>
10 10  
  11 + <div class="actions">
  12 + <%= button(:back, _('Go back'), {:controller => 'plugins', :action => 'index'}) %>
  13 + </div>
11 14 </div>
... ...