From 25d7c1b6eaf03ddaec892c82f7d93a128b79a872 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 14 Mar 2016 17:41:13 +0100 Subject: Customizing the last of doorkeeper views, adding CSS for dashboard forms --- app/views/doorkeeper/authorized_applications/_delete_form.html.haml | 3 --- app/views/doorkeeper/authorized_applications/index.html.haml | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 app/views/doorkeeper/authorized_applications/_delete_form.html.haml (limited to 'app/views/doorkeeper/authorized_applications') 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 -- cgit