From 1e0bdda2f5ea1c8d401c7c92ac32acf2f9625ac2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 23 Apr 2012 21:30:57 +0100 Subject: [PATCH] Show a delete button on the OAuth application view --- app/views/oauth_clients/show.html.erb | 7 ++++++- config/locales/en.yml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/oauth_clients/show.html.erb b/app/views/oauth_clients/show.html.erb index 2769fcd28..31f71ec9e 100644 --- a/app/views/oauth_clients/show.html.erb +++ b/app/views/oauth_clients/show.html.erb @@ -24,4 +24,9 @@

<%= t'oauth_clients.show.support_notice' %>

-

<%= link_to t('oauth_clients.show.edit'), edit_oauth_client_url(@client_application.user.display_name, @client_application) %>

+ + + + + +
<%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get %><%= button_to t('oauth_clients.show.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :confirm => t('oauth_clients.show.confirm') %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index db0ca5a6b..5ec659d62 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1556,6 +1556,8 @@ en: authorize_url: "Authorise URL:" support_notice: "We support HMAC-SHA1 (recommended) as well as plain text in SSL mode." edit: "Edit Details" + delete: "Delete Client" + confirm: "Are you sure?" requests: "Requesting the following permissions from the user:" allow_read_prefs: "read their user preferences." allow_write_prefs: "modify their user preferences." -- 2.43.2