about summary refs log tree commit diff
path: root/app/views/doorkeeper/authorized_applications
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-14 17:41:13 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-14 17:41:13 +0100
commit25d7c1b6eaf03ddaec892c82f7d93a128b79a872 (patch)
treec9991b70e8cfd584c09b502bc39dc0763d017731 /app/views/doorkeeper/authorized_applications
parent34413615683677e26213263fb98f63b5aab64872 (diff)
Customizing the last of doorkeeper views, adding CSS for dashboard forms
Diffstat (limited to 'app/views/doorkeeper/authorized_applications')
-rw-r--r--app/views/doorkeeper/authorized_applications/_delete_form.html.haml3
-rw-r--r--app/views/doorkeeper/authorized_applications/index.html.haml4
2 files changed, 2 insertions, 5 deletions
diff --git a/app/views/doorkeeper/authorized_applications/_delete_form.html.haml b/app/views/doorkeeper/authorized_applications/_delete_form.html.haml
deleted file mode 100644
index 8400efcfe..000000000
--- a/app/views/doorkeeper/authorized_applications/_delete_form.html.haml
+++ /dev/null
@@ -1,3 +0,0 @@
-= form_tag oauth_authorized_application_path(application) do
-  %input{type: "hidden", name: "_method", value: "delete"}
-  = submit_tag 'Revoke', class: 'btn'
diff --git a/app/views/doorkeeper/authorized_applications/index.html.haml b/app/views/doorkeeper/authorized_applications/index.html.haml
index f2f238e87..a75c43129 100644
--- a/app/views/doorkeeper/authorized_applications/index.html.haml
+++ b/app/views/doorkeeper/authorized_applications/index.html.haml
@@ -8,9 +8,9 @@
 %table.table
   %thead
     %tr
-      %th= t('doorkeeper.authorized_applications.index.application')
+      %th App
       %th
   - @applications.each do |application|
     %tr
       %td= application.name
-      %td= render 'delete_form', application: application
+      %td= link_to 'Revoke', oauth_authorized_application_path(application), method: :delete