summaryrefslogtreecommitdiff
path: root/app/views/doorkeeper/authorized_applications/_delete_form.html.haml
blob: 69cc510e9c1e2c2988cd53b1c77c600ae1a85e42 (plain)
1
2
3
4
5
6
7
8
- 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-remove btn-sm'