From: Tom Hughes Date: Mon, 23 Apr 2012 20:30:57 +0000 (+0100) Subject: Show a delete button on the OAuth application view X-Git-Tag: live~5595 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1e0bdda2f5ea1c8d401c7c92ac32acf2f9625ac2?ds=sidebyside Show a delete button on the OAuth application view --- 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."