summaryrefslogtreecommitdiff
path: root/app/views/doorkeeper/authorized_applications/_delete_form.html.haml
blob: bfa95ce79a7c94695c4649e1c64db4ad31540382 (plain)
1
2
3
4
5
6
7
8
9
- submit_btn_css ||= 'btn btn-link btn-remove'
- if defined?(token)
  - path = oauth_authorized_application_path(0, token_id: token)
- else
  - path = oauth_authorized_application_path(application)
  
= form_tag path do
  %input{:name => "_method", :type => "hidden", :value => "delete"}/
  = submit_tag 'Revoke', onclick: "return confirm('Are you sure?')", class: 'btn btn-link btn-remove btn-sm'