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,3 +8,6 @@
8 .oauth-provider-authorize #oauth-permissions { 8 .oauth-provider-authorize #oauth-permissions {
9 color: rgb(92, 92, 92); 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 <div class="page-header"> 2 <div class="page-header">
2 <h3><%= link_to _('Oauh Provider'), '/admin/plugin/oauth_provider' %></h3> 3 <h3><%= link_to _('Oauh Provider'), '/admin/plugin/oauth_provider' %></h3>
3 </div> 4 </div>
@@ -24,3 +25,7 @@ @@ -24,3 +25,7 @@
24 <% end %> 25 <% end %>
25 </tbody> 26 </tbody>
26 </table> 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 <header class="page-header"> 2 <header class="page-header">
2 <h1>Your authorized applications</h1> 3 <h1>Your authorized applications</h1>
3 </header> 4 </header>
@@ -23,3 +24,8 @@ @@ -23,3 +24,8 @@
23 </tbody> 24 </tbody>
24 </table> 25 </table>
25 </main> 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,4 +8,7 @@
8 <%= link_to _('Authorized Applications'), oauth_authorized_applications_path %> 8 <%= link_to _('Authorized Applications'), oauth_authorized_applications_path %>
9 </div> 9 </div>
10 10
  11 + <div class="actions">
  12 + <%= button(:back, _('Go back'), {:controller => 'plugins', :action => 'index'}) %>
  13 + </div>
11 </div> 14 </div>