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.

24 lines
1.0 KiB

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