From 6cc86ce6019ee3bfadaf284d36eb5276dda2339e Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 26 Nov 2014 11:24:38 -0300 Subject: [PATCH] oauth_provider: added buttons to go back in admin views --- plugins/oauth_provider/public/style.css | 3 +++ plugins/oauth_provider/views/doorkeeper/applications/index.html.erb | 5 +++++ plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb | 6 ++++++ plugins/oauth_provider/views/oauth_provider_plugin_admin/index.html.erb | 3 +++ 4 files changed, 17 insertions(+), 0 deletions(-) diff --git a/plugins/oauth_provider/public/style.css b/plugins/oauth_provider/public/style.css index adbfc5a..47ed2ab 100644 --- a/plugins/oauth_provider/public/style.css +++ b/plugins/oauth_provider/public/style.css @@ -8,3 +8,6 @@ .oauth-provider-authorize #oauth-permissions { color: rgb(92, 92, 92); } +.oauth-provider .actions { + margin-top: 10px; +} diff --git a/plugins/oauth_provider/views/doorkeeper/applications/index.html.erb b/plugins/oauth_provider/views/doorkeeper/applications/index.html.erb index 9e20df0..2cc3631 100644 --- a/plugins/oauth_provider/views/doorkeeper/applications/index.html.erb +++ b/plugins/oauth_provider/views/doorkeeper/applications/index.html.erb @@ -1,3 +1,4 @@ +
@@ -24,3 +25,7 @@ <% end %> +
+ <%= button(:back, _('Go back'), {:controller => 'oauth_provider_plugin_admin', :action => 'index'}) %> +
+
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 57e48fc..0b9a6c3 100644 --- a/plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb +++ b/plugins/oauth_provider/views/doorkeeper/authorized_applications/index.html.erb @@ -1,3 +1,4 @@ +
@@ -23,3 +24,8 @@ + +
+ <%= button(:back, _('Go back'), :back) %> +
+
diff --git a/plugins/oauth_provider/views/oauth_provider_plugin_admin/index.html.erb b/plugins/oauth_provider/views/oauth_provider_plugin_admin/index.html.erb index 7e11968..3d4fca2 100644 --- a/plugins/oauth_provider/views/oauth_provider_plugin_admin/index.html.erb +++ b/plugins/oauth_provider/views/oauth_provider_plugin_admin/index.html.erb @@ -8,4 +8,7 @@ <%= link_to _('Authorized Applications'), oauth_authorized_applications_path %> +
+ <%= button(:back, _('Go back'), {:controller => 'plugins', :action => 'index'}) %> +
-- libgit2 0.21.2