Rensselaer Center for Open Source Software

Show a delete button on the OAuth application view

4 files changed, 8 lines added, 1 line removed

Changes

--- app/views/oauth_clients/show.html.erb 53fe84fbef321f383cf030b99ab3401663d637e1
+++ app/views/oauth_clients/show.html.erb 1e0bdda2f5ea1c8d401c7c92ac32acf2f9625ac2
@@ -24,4 +24,9 @@
-<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>
--- config/locales/en.yml 53fe84fbef321f383cf030b99ab3401663d637e1
+++ config/locales/en.yml 1e0bdda2f5ea1c8d401c7c92ac32acf2f9625ac2
@@ -1556,6 +1556,8 @@
+      delete: "Delete Client"
+      confirm: "Are you sure?"
Tom Hughes
Jumpstart • 56 weeks ago