]> git.openstreetmap.org Git - rails.git/commitdiff
Show a delete button on the OAuth application view
authorTom Hughes <tom@compton.nu>
Mon, 23 Apr 2012 20:30:57 +0000 (21:30 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 23 Apr 2012 20:30:57 +0000 (21:30 +0100)
app/views/oauth_clients/show.html.erb
config/locales/en.yml

index 2769fcd289174922bf471e2fa1fa8d25a9a0de12..31f71ec9e13b26ab3afd875b5258e5b3fa588278 100644 (file)
@@ -24,4 +24,9 @@
 
 <p><%= t'oauth_clients.show.support_notice' %></p>
 
 
 <p><%= t'oauth_clients.show.support_notice' %></p>
 
-<p><%= link_to t('oauth_clients.show.edit'), edit_oauth_client_url(@client_application.user.display_name, @client_application) %></p>
+<table>
+<tr>
+<td><%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get %></td>
+<td><%= 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') %></td>
+</tr>
+</table>
index db0ca5a6bf60d217899d58daca7494664e9af1a7..5ec659d62825dd5fc9bf07d1d89fe1fad8455809 100644 (file)
@@ -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"
       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."
       requests: "Requesting the following permissions from the user:"
       allow_read_prefs:  "read their user preferences."
       allow_write_prefs: "modify their user preferences."