You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1018 B

  1. - content_for :page_title do
  2. = t('doorkeeper.authorized_applications.index.title')
  3. %table.table
  4. %thead
  5. %tr
  6. %th= t('doorkeeper.authorized_applications.index.application')
  7. %th= t('doorkeeper.authorized_applications.index.scopes')
  8. %th= t('doorkeeper.authorized_applications.index.created_at')
  9. %th
  10. %tbody
  11. - @applications.each do |application|
  12. %tr
  13. %td
  14. - if application.website.blank?
  15. = application.name
  16. - else
  17. = link_to application.name, application.website, target: '_blank', rel: 'noopener'
  18. %th!= application.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.join('<br />')
  19. %td= l application.created_at
  20. %td
  21. - unless application.superapp?
  22. = table_link_to 'times', t('doorkeeper.authorized_applications.buttons.revoke'), oauth_authorized_application_path(application), method: :delete, data: { confirm: t('doorkeeper.authorized_applications.confirmations.revoke') }